3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface CommandInterface { public function execute(); } class PriceTest implements CommandInterface { public function execute($i) { echo 'test ' . $i; return null; } } (new PriceTest)->execute('aslkjdfnlaksdf');

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.70.0140.00716.75
8.3.60.0120.00616.75
8.3.50.0130.00921.92
8.3.40.0120.00318.78
8.3.30.0090.00618.69
8.3.20.0040.00420.16
8.3.10.0040.00421.77
8.3.00.0030.00619.13
8.2.180.0140.00718.13
8.2.170.0110.00322.96
8.2.160.0070.00720.35
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0030.00619.36
8.2.120.0080.00026.35
8.2.110.0060.00320.49
8.2.100.0040.00817.61
8.2.90.0040.00417.52
8.2.80.0030.00517.97
8.2.70.0060.00317.91
8.2.60.0060.00317.38
8.2.50.0000.00818.10
8.2.40.0040.00422.27
8.2.30.0000.00822.35
8.2.20.0060.00317.62
8.2.10.0000.00717.87
8.2.00.0050.00318.06
8.1.280.0100.00725.92
8.1.270.0060.00323.76
8.1.260.0060.00328.09
8.1.250.0000.00828.09
8.1.240.0110.00022.12
8.1.230.0110.00020.84
8.1.220.0030.00617.74
8.1.210.0000.00919.04
8.1.200.0030.00617.35
8.1.190.0000.00917.10
8.1.180.0000.00818.10
8.1.170.0000.00818.46
8.1.160.0030.00618.84
8.1.150.0000.00720.27
8.1.140.0030.00519.57
8.1.130.0030.00517.61
8.1.120.0000.00817.36
8.1.110.0040.00417.46
8.1.100.0000.00817.42
8.1.90.0040.00317.43
8.1.80.0030.00317.42
8.1.70.0030.00517.40
8.1.60.0040.00417.51
8.1.50.0040.00417.33
8.1.40.0030.00517.49
8.1.30.0040.00417.52
8.1.20.0060.00317.55
8.1.10.0050.00217.27
8.1.00.0000.00717.23
8.0.300.0020.00519.73
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0070.00017.15
8.0.260.0000.00617.11
8.0.250.0070.00016.83
8.0.240.0030.00316.95
8.0.230.0030.00317.02
8.0.220.0030.00316.90
8.0.210.0070.00016.78
8.0.200.0030.00316.84
8.0.190.0050.00316.84
8.0.180.0060.00316.80
8.0.170.0030.00516.94
8.0.160.0070.00016.93
8.0.150.0030.00516.83
8.0.140.0070.00016.79
8.0.130.0030.00313.29
8.0.120.0030.00616.76
8.0.110.0040.00416.91
8.0.100.0000.00716.73
8.0.90.0000.00716.84
8.0.80.0120.00316.84
8.0.70.0050.00216.98
8.0.60.0030.00616.85
8.0.50.0000.00816.66
8.0.30.0080.00717.12
8.0.20.0120.00817.40
8.0.10.0040.00416.88
8.0.00.0090.00816.63
7.4.330.0020.00216.77
7.4.320.0030.00316.40
7.4.300.0000.00616.56
7.4.290.0070.00016.44
7.4.280.0100.00016.55
7.4.270.0000.00716.59
7.4.260.0000.00816.51
7.4.250.0030.00516.41
7.4.240.0050.00216.49
7.4.230.0030.00316.45
7.4.220.0130.00616.47
7.4.210.0140.00516.44
7.4.200.0000.00716.55
7.4.160.0080.00816.63
7.4.150.0070.01017.40
7.4.140.0130.01217.86
7.4.130.0060.01216.36
7.4.120.0110.00716.61
7.4.110.0130.01016.37
7.4.100.0080.01216.54
7.4.90.0120.00916.58
7.4.80.0070.01019.39
7.4.70.0080.00816.33
7.4.60.0070.01716.45
7.4.50.0040.01116.61
7.4.40.0060.01016.46
7.4.30.0090.01316.41
7.4.10.0070.01015.00
7.4.00.0050.01314.79
7.3.330.0050.00013.23
7.3.320.0000.00713.10
7.3.310.0070.00016.14
7.3.300.0040.00416.17
7.3.290.0000.00816.23
7.3.280.0070.00916.22
7.3.270.0070.02017.40
7.3.260.0060.01016.23
7.3.240.0160.00616.33
7.3.230.0060.01016.39
7.3.210.0160.00616.30
7.3.200.0070.00916.32
7.3.190.0110.00416.43
7.3.180.0100.00716.36
7.3.170.0110.00716.28
7.3.160.0100.00716.14
7.3.130.0140.00314.86
7.3.120.0100.00714.58
7.3.110.0080.00814.72
7.3.100.0100.00714.63
7.3.90.0020.01514.71
7.3.80.0020.01114.63
7.3.70.0050.00814.70
7.3.60.0070.00414.77
7.3.50.0030.01114.79
7.3.40.0030.01214.62
7.3.30.0070.00914.67
7.3.20.0030.01016.53
7.3.10.0070.00516.66
7.3.00.0040.01116.59
7.2.330.0100.00716.51
7.2.320.0070.01716.59
7.2.310.0130.00616.48
7.2.300.0090.00916.31
7.2.290.0130.01016.52
7.2.260.0080.00414.58
7.2.250.0080.00914.69
7.2.240.0110.00614.95
7.2.230.0060.00514.80
7.2.220.0080.00614.56
7.2.210.0090.00314.93
7.2.200.0090.00714.96
7.2.190.0050.00614.55
7.2.180.0050.00714.87
7.2.170.0090.00314.91
7.2.160.0010.01114.88
7.2.150.0090.00516.66
7.2.140.0070.00716.57
7.2.130.0080.00816.73
7.2.120.0040.00916.73
7.2.110.0080.00516.53
7.2.100.0070.00816.87
7.2.90.0050.01116.73
7.2.80.0040.01116.64
7.2.70.0070.00916.82
7.2.60.0110.00316.72
7.2.50.0080.00916.71
7.2.40.0140.00416.78
7.2.30.0090.00916.71
7.2.20.0060.00516.62
7.2.10.0100.00616.78
7.2.00.0040.01017.70
7.1.330.0030.01415.52
7.1.320.0060.00615.77
7.1.310.0050.00915.48
7.1.300.0030.01115.61
7.1.290.0100.00515.71
7.1.280.0050.01015.67
7.1.270.0000.01115.60
7.1.260.0100.00515.56
7.1.250.0020.01115.47
7.1.240.0060.00615.71
7.1.230.0000.01315.50
7.1.220.0070.00715.62
7.1.210.0040.01215.54
7.1.200.0070.00315.53
7.1.190.0070.00315.72
7.1.180.0060.00315.47
7.1.170.0060.00315.60
7.1.160.0070.00415.50
7.1.150.0080.00315.65
7.1.140.0070.00715.42
7.1.130.0000.00915.69
7.1.120.0060.00815.48
7.1.110.0070.00715.85
7.1.100.0070.00616.87
7.1.90.0000.01215.52
7.1.80.0030.00815.88
7.1.70.0030.01016.27
7.1.60.0090.00917.59
7.1.50.0050.01116.10
7.1.40.0100.00315.62
7.1.30.0090.00015.79
7.1.20.0030.01015.50
7.1.10.0040.01215.30
7.1.00.0000.04418.87
7.0.330.0100.00014.95
7.0.320.0110.00015.48
7.0.310.0090.00615.43
7.0.300.0000.01315.42
7.0.290.0000.00915.18
7.0.280.0120.00015.26
7.0.270.0030.01015.18
7.0.260.0070.00715.23
7.0.250.0060.00315.27
7.0.240.0060.00615.37
7.0.230.0070.00715.07
7.0.220.0030.00915.55
7.0.210.0070.00714.91
7.0.200.0140.00814.99
7.0.190.0000.00915.40
7.0.180.0070.00715.22
7.0.170.0060.00615.35
7.0.160.0040.01215.32
7.0.150.0150.00015.09
7.0.140.0030.01215.17
7.0.130.0060.01215.26
7.0.120.0030.01015.22
7.0.110.0040.01115.25
7.0.100.0060.00915.10
7.0.90.0000.00915.40
7.0.80.0060.00915.45
7.0.70.0030.01015.46
7.0.60.0070.03417.54
7.0.50.0060.04316.65
7.0.40.0060.04216.83
7.0.30.0190.03816.75
7.0.20.0100.02516.65
7.0.10.0100.02216.77
7.0.00.0060.04616.61
5.6.400.0030.00713.96
5.6.390.0070.00414.18
5.6.380.0060.00814.36
5.6.370.0070.00714.41
5.6.360.0110.00414.11
5.6.350.0030.00914.15
5.6.340.0070.00414.02
5.6.330.0040.00813.95
5.6.320.0030.01214.28
5.6.310.0070.01114.40
5.6.300.0120.00314.18
5.6.290.0060.00914.36
5.6.280.0050.01717.62
5.6.270.0100.00313.92
5.6.260.0030.00613.98
5.6.250.0030.00613.94
5.6.240.0030.00614.10
5.6.230.0060.01214.07
5.6.220.0040.00714.03
5.6.210.0020.03717.46
5.6.200.0090.04216.14
5.6.190.0080.04617.26
5.6.180.0150.02917.35
5.6.170.0190.03017.30
5.6.160.0050.04717.31
5.6.150.0120.03216.13
5.6.140.0040.03016.28
5.6.130.0070.04016.22
5.6.120.0080.02817.52
5.6.110.0100.03717.57
5.6.100.0100.02517.61
5.6.90.0080.03817.57
5.6.80.0070.04217.19
5.6.70.0110.00313.96
5.6.60.0100.00313.96
5.6.50.0130.00314.01
5.6.40.0070.00714.09
5.6.30.0090.00313.90
5.6.20.0000.00814.19
5.6.10.0090.00014.34
5.6.00.0060.00314.18
5.5.380.0100.00313.75
5.5.370.0070.01014.20
5.5.360.0040.00814.23
5.5.350.2150.02417.22
5.5.340.0070.02716.10
5.5.330.0080.04217.24
5.5.320.0050.03217.23
5.5.310.0160.02217.16
5.5.300.0080.03116.18
5.5.290.0080.03116.05
5.5.280.0050.02317.49
5.5.270.0020.02517.46
5.5.260.0100.04017.44
5.5.250.0040.02417.32
5.5.240.0230.03317.09
5.5.230.0030.00513.97
5.5.220.0060.00614.02
5.5.210.0030.01014.09
5.5.200.0080.00313.68
5.5.190.0000.01114.35
5.5.180.0080.00614.04
5.5.170.0070.00314.23
5.5.160.0070.00313.98
5.5.150.0060.00614.05
5.5.140.0110.00314.15
5.5.130.0000.01413.93
5.5.120.0070.00714.01
5.5.110.0030.00613.82
5.5.100.0060.00613.86
5.5.90.0100.00714.18
5.5.80.0000.01313.85
5.5.70.0090.00914.01
5.5.60.0000.01313.81
5.5.50.0080.00013.77
5.5.40.0060.01013.79
5.5.30.0030.00514.23
5.5.20.0060.00613.94
5.5.10.0070.00714.06
5.5.00.0070.01013.71

preferences:
33.46 ms | 401 KiB | 5 Q