3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { static function b() { echo 'c'; } static function c() { $a = array('a', 'b'); self::$a(); } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.40.0000.01518.55
8.3.30.0070.00720.21
8.3.20.0050.00320.23
8.3.10.0080.00020.97
8.3.00.0040.00423.54
8.2.170.0110.00422.96
8.2.160.0070.00720.34
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00021.11
8.2.110.0040.00422.19
8.2.100.0120.00017.78
8.2.90.0080.00019.05
8.2.80.0030.00519.38
8.2.70.0080.00017.38
8.2.60.0060.00317.80
8.2.50.0110.00018.07
8.2.40.0040.00418.09
8.2.30.0060.00319.28
8.2.20.0000.00817.54
8.2.10.0000.00717.54
8.2.00.0040.00417.62
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0080.00320.57
8.1.230.0110.00020.88
8.1.220.0000.00818.77
8.1.210.0040.00418.82
8.1.200.0000.00817.13
8.1.190.0060.00317.39
8.1.180.0040.00418.10
8.1.170.0070.00018.66
8.1.160.0070.00018.66
8.1.150.0050.00518.41
8.1.140.0040.00417.31
8.1.130.0070.00017.67
8.1.120.0040.00317.33
8.1.110.0000.00717.27
8.1.100.0000.00717.28
8.1.90.0000.00817.25
8.1.80.0040.00417.37
8.1.70.0000.00717.21
8.1.60.0040.00417.34
8.1.50.0040.00417.35
8.1.40.0030.00617.32
8.1.30.0020.00517.41
8.1.20.0030.00617.41
8.1.10.0050.00217.36
8.1.00.0040.00417.31
8.0.300.0030.00519.77
8.0.290.0040.00417.05
8.0.280.0040.00418.23
8.0.270.0000.00717.13
8.0.260.0000.00716.69
8.0.250.0070.00016.91
8.0.240.0080.00016.87
8.0.230.0030.00316.82
8.0.220.0040.00416.79
8.0.210.0050.00316.72
8.0.200.0000.00616.80
8.0.190.0050.00216.84
8.0.180.0050.00316.82
8.0.170.0060.00316.70
8.0.160.0000.00716.74
8.0.150.0000.00716.79
8.0.140.0000.00816.60
8.0.130.0000.00513.15
8.0.120.0000.00816.61
8.0.110.0080.00016.66
8.0.100.0040.00416.64
8.0.90.0040.00416.65
8.0.80.0000.01516.76
8.0.70.0000.00716.80
8.0.60.0040.00416.59
8.0.50.0000.00716.56
8.0.30.0110.00916.86
8.0.20.0130.00717.40
8.0.10.0000.00716.95
8.0.00.0080.01116.57
7.4.330.0070.00014.99
7.4.320.0030.00316.27
7.4.300.0030.00316.47
7.4.290.0070.00016.28
7.4.280.0070.00016.47
7.4.270.0050.00216.45
7.4.260.0000.00513.17
7.4.250.0050.00216.44
7.4.240.0000.00716.51
7.4.230.0000.00716.30
7.4.220.0070.01116.48
7.4.210.0070.00716.48
7.4.200.0070.00016.36
7.4.190.0000.00716.24
7.4.160.0090.00616.55
7.4.150.0130.00917.40
7.4.140.0100.00917.86
7.4.130.0070.01016.29
7.4.120.0150.00716.47
7.4.110.0070.01016.27
7.4.100.0120.00616.54
7.4.90.0090.01216.47
7.4.80.0120.00919.39
7.4.70.0160.00016.16
7.4.60.0040.01116.16
7.4.50.0000.00916.38
7.4.40.0060.01022.77
7.4.30.0060.01016.14
7.4.00.0000.01814.64
7.3.330.0000.00613.20
7.3.320.0050.00013.18
7.3.310.0060.00015.99
7.3.300.0000.00916.00
7.3.290.0100.00616.18
7.3.280.0090.00816.16
7.3.270.0120.00917.40
7.3.260.0080.01318.24
7.3.250.0080.01116.33
7.3.240.0090.00916.53
7.3.230.0130.00516.39
7.3.210.0080.00816.25
7.3.200.0100.00719.39
7.3.190.0160.00016.12
7.3.180.0060.01116.18
7.3.170.0070.01016.27
7.3.160.0100.00616.50
7.3.120.0080.00614.88
7.2.330.0070.01016.46
7.2.320.0110.01116.59
7.2.310.0130.00516.31
7.2.300.0070.01016.36
7.2.290.0070.01016.23
7.2.00.0040.00718.75
7.1.100.0030.01017.88
7.1.70.0130.00316.93
7.1.60.0070.01319.17
7.1.50.0030.00816.82
7.1.00.0000.04722.51
7.0.200.0000.00716.57
7.0.140.0000.07322.01
7.0.60.0030.08319.85
7.0.50.0130.07017.85
7.0.40.0100.07020.25
7.0.30.0170.04020.08
7.0.20.0270.08020.22
7.0.10.0070.07320.05
7.0.00.0100.04320.09
5.6.280.0030.07320.99
5.6.210.0100.07720.57
5.6.200.0100.08018.28
5.6.190.0000.04720.73
5.6.180.0200.04320.50
5.6.170.0400.06720.57
5.6.160.0100.08320.70
5.6.150.0070.06018.21
5.6.140.0030.04018.13
5.6.130.0030.05718.18
5.6.120.0070.08721.10
5.6.110.0100.08320.95
5.6.100.0000.09021.03
5.6.90.0030.05320.93
5.6.80.0100.06320.51
5.6.70.3200.03320.53
5.5.350.0000.04320.49
5.5.340.0030.04717.92
5.5.330.0100.05020.40
5.5.320.0130.04720.32
5.5.310.0200.07320.34
5.5.300.0070.04017.95
5.5.290.0100.08318.08
5.5.280.0100.08020.97
5.5.270.0130.07720.86
5.5.260.0170.04020.86
5.5.250.0100.06720.61
5.5.240.0030.06320.28
5.4.450.0000.04319.48
5.4.440.0100.03319.56
5.4.430.0030.06019.27
5.4.420.0030.05719.32
5.4.410.0030.07019.41
5.4.400.0070.07019.20
5.4.390.0070.06319.15
5.4.380.0030.07318.98
5.4.370.0070.03719.24
5.4.360.0000.06319.09
5.4.350.0030.04718.86
5.4.340.0000.04319.08
5.4.320.0000.07718.84
5.4.310.0030.04019.21
5.4.300.0030.06019.12
5.4.290.0000.06318.86
5.4.280.0070.05719.16
5.4.270.0030.07018.86
5.4.260.0100.06019.24
5.4.250.0070.04018.94
5.4.240.0070.07019.15
5.4.230.0000.07718.86
5.4.220.0030.07018.99
5.4.210.0000.07719.10
5.4.200.0070.05019.16
5.4.190.0070.04019.08
5.4.180.0100.07019.07
5.4.170.0030.05319.23
5.4.160.0000.07718.96
5.4.150.0070.07319.29
5.4.140.0100.07016.32
5.4.130.0030.05316.41
5.4.120.0000.04716.47
5.4.110.0070.06716.58
5.4.100.0030.03716.45
5.4.90.0000.06316.37
5.4.80.0000.06316.53
5.4.70.0030.06016.43
5.4.60.0000.07316.32
5.4.50.0000.06316.53
5.4.40.0030.04716.42
5.4.30.0070.06716.51
5.4.20.0130.06016.53
5.4.10.0070.06316.53
5.4.00.0000.03716.25
5.3.290.0000.05016.25
5.3.280.0000.04016.25
5.3.270.0070.03716.25
5.3.260.0070.04016.25
5.3.250.0030.04716.25
5.3.240.0070.03716.25
5.3.230.0030.04716.25
5.3.220.0170.03016.25
5.3.210.0030.04716.25
5.3.200.0030.04316.25
5.3.190.0030.04316.25
5.3.180.0030.04316.25
5.3.170.0030.04316.25
5.3.160.0030.07716.25
5.3.150.0070.07016.25
5.3.140.0030.03716.25
5.3.130.0070.06316.25
5.3.120.0000.04716.25
5.3.110.0070.07016.25
5.3.100.0030.07316.25
5.3.90.0000.05716.25
5.3.80.0000.07016.25
5.3.70.0070.03316.25
5.3.60.0000.07316.25
5.3.50.0030.06716.25
5.3.40.0030.03316.25
5.3.30.0000.03716.25
5.3.20.0030.03316.25
5.3.10.0000.06316.25
5.3.00.0000.05016.25
5.2.170.0000.04016.25
5.2.160.0030.06316.25
5.2.150.0030.03016.25
5.2.140.0000.06316.25
5.2.130.0000.06016.25
5.2.120.0000.03716.25
5.2.110.0000.03316.25
5.2.100.0000.05716.25
5.2.90.0000.03016.25
5.2.80.0000.03316.25
5.2.70.0000.05716.25
5.2.60.0030.06716.25
5.2.50.0000.05316.25
5.2.40.0000.03016.25
5.2.30.0000.04316.25
5.2.20.0030.05016.25
5.2.10.0030.03016.25
5.2.00.0000.05316.25
5.1.60.0030.03716.25
5.1.50.0030.05016.25
5.1.40.0000.05716.25
5.1.30.0030.02716.25
5.1.20.0030.04316.25
5.1.10.0070.04716.25
5.1.00.0070.05316.25
5.0.50.0070.03316.25
5.0.40.0070.03716.25
5.0.30.0000.05016.25
5.0.20.0030.03016.25
5.0.10.0000.03716.25
5.0.00.0000.06316.25
4.4.90.0030.03716.25
4.4.80.0000.02016.25
4.4.70.0030.03316.25
4.4.60.0070.03016.25
4.4.50.0000.03316.25
4.4.40.0030.03316.25
4.4.30.0030.01716.25
4.4.20.0130.02016.25
4.4.10.0000.03316.25
4.4.00.0030.04016.25
4.3.110.0000.01716.25
4.3.100.0000.03716.25
4.3.90.0130.01316.25
4.3.80.0030.05016.25
4.3.70.0030.03716.25
4.3.60.0000.03016.25
4.3.50.0000.02716.25
4.3.40.0030.04016.25
4.3.30.0000.03316.25
4.3.20.0000.04016.25
4.3.10.0000.03316.25
4.3.00.0000.03016.25

preferences:
40.48 ms | 400 KiB | 5 Q