3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static function getVersion() { return array('versionNumber' => 0x656 ); } } if (foo::getVersion()['versionNumber'] < 0x656) { echo 'skip too old foo'; } echo "is ok";

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.4.20.0060.01318.47
8.4.10.0040.00419.31
8.3.150.0150.00320.75
8.3.140.0050.00316.70
8.3.130.0070.00318.17
8.3.120.0130.00718.97
8.3.110.0040.00420.94
8.3.100.0070.01024.06
8.3.90.0030.00626.77
8.3.80.0090.00016.23
8.3.70.0040.01116.58
8.3.60.0200.00316.50
8.3.50.0100.01021.21
8.3.40.0070.00718.82
8.3.30.0140.00018.71
8.3.20.0000.00819.57
8.3.10.0050.00320.40
8.3.00.0060.00323.48
8.2.270.0060.01217.05
8.2.260.0090.00618.13
8.2.250.0090.00916.74
8.2.240.0070.00719.03
8.2.230.0040.01222.58
8.2.220.0030.00637.54
8.2.210.0100.01026.77
8.2.200.0090.00016.50
8.2.190.0140.00418.16
8.2.180.0090.00618.25
8.2.170.0150.00418.96
8.2.160.0000.01322.96
8.2.150.0030.00525.66
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00419.83
8.2.110.0030.00721.10
8.2.100.0120.00017.72
8.2.90.0000.00819.17
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0040.00817.93
8.2.50.0040.00418.07
8.2.40.0080.00018.22
8.2.30.0030.00617.93
8.2.20.0000.00718.00
8.2.10.0040.00417.95
8.2.00.0040.00418.06
8.1.310.0110.00716.63
8.1.300.0080.00017.98
8.1.290.0060.00330.84
8.1.280.0070.01125.92
8.1.270.0160.00020.27
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0070.00320.89
8.1.230.0030.00917.83
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0060.00318.49
8.1.160.0030.00518.67
8.1.150.0110.00020.17
8.1.140.0070.00019.50
8.1.130.0000.00718.95
8.1.120.0030.00617.34
8.1.110.0000.00817.20
8.1.100.0040.00417.25
8.1.90.0000.00717.29
8.1.80.0040.00417.38
8.1.70.0000.00717.35
8.1.60.0050.00317.52
8.1.50.0040.00417.43
8.1.40.0000.00717.45
8.1.30.0050.00217.63
8.1.20.0090.00017.61
8.1.10.0040.00417.42
8.1.00.0030.00617.42
8.0.300.0040.00418.77
8.0.290.0020.00516.63
8.0.280.0030.00318.44
8.0.270.0070.00017.16
8.0.260.0000.00617.24
8.0.250.0040.00416.91
8.0.240.0000.00716.88
8.0.230.0000.00716.73
8.0.220.0070.00016.70
8.0.210.0030.00316.69
8.0.200.0000.00816.85
8.0.190.0070.00316.91
8.0.180.0040.00416.84
8.0.170.0030.00316.86
8.0.160.0000.00816.88
8.0.150.0040.00416.72
8.0.140.0000.01016.64
8.0.130.0060.00013.12
8.0.120.0030.00516.75
8.0.110.0070.00016.77
8.0.100.0000.00716.88
8.0.90.0040.00416.56
8.0.80.0040.01116.71
8.0.70.0000.00716.77
8.0.60.0000.00716.83
8.0.50.0050.00216.82
8.0.30.0070.01116.92
8.0.20.0120.00617.40
8.0.10.0040.00416.84
8.0.00.0130.01016.91
7.4.330.0000.00515.55
7.4.320.0000.00616.42
7.4.300.0000.00616.33
7.4.290.0030.00716.48
7.4.280.0080.00016.57
7.4.270.0040.00416.43
7.4.260.0030.00316.44
7.4.250.0030.00316.50
7.4.240.0030.00316.43
7.4.230.0000.00716.63
7.4.220.0030.01616.36
7.4.210.0080.00716.49
7.4.200.0000.00716.51
7.4.160.0050.01016.44
7.4.150.0070.01317.40
7.4.140.0070.01217.86
7.4.130.0100.01016.45
7.4.120.0080.01216.41
7.4.110.0070.01116.43
7.4.100.0070.01116.41
7.4.90.0160.00716.30
7.4.80.0120.00919.39
7.4.70.0100.00716.52
7.4.60.0150.00316.46
7.4.50.0120.00616.16
7.4.40.0060.00916.50
7.4.30.0120.00916.54
7.4.00.0030.01015.11
7.3.330.0030.00313.38
7.3.320.0030.00313.22
7.3.310.0030.00316.39
7.3.300.0050.00216.29
7.3.290.0030.00316.36
7.3.280.0100.00816.34
7.3.270.0090.00917.40
7.3.260.0130.00616.49
7.3.250.0090.00816.39
7.3.240.0100.00916.45
7.3.230.0100.00616.57
7.3.210.0080.00816.58
7.3.200.0130.00316.61
7.3.190.0090.00916.37
7.3.180.0120.00916.54
7.3.170.0040.01116.23
7.3.160.0140.00316.34
7.3.10.0060.00616.70
7.3.00.0000.00916.29
7.2.330.0110.00616.84
7.2.320.0040.01516.51
7.2.310.0040.01216.85
7.2.300.0160.00716.74
7.2.290.0060.01016.78
7.2.130.0000.00916.64
7.2.120.0000.00816.91
7.2.110.0100.00716.72
7.2.100.0040.01116.89
7.2.90.0090.00016.69
7.2.80.0120.00316.83
7.2.70.0030.00716.80
7.2.60.0070.00716.50
7.2.50.0110.00416.71
7.2.40.0000.01116.84
7.2.30.0030.01216.58
7.2.20.0090.00616.82
7.2.10.0030.01016.98
7.2.00.0090.00616.95
7.1.250.0070.00415.52
7.1.240.0030.00615.63
7.1.230.0030.00615.70
7.1.220.0070.00015.30
7.1.210.0070.00715.65
7.1.200.0060.00915.84
7.1.190.0060.00615.32
7.1.180.0030.01315.52
7.1.170.0000.01015.43
7.1.160.0040.00415.61
7.1.150.0100.00315.68
7.1.140.0040.00815.66
7.1.130.0000.00915.48
7.1.120.0030.00715.65
7.1.110.0080.00315.83
7.1.100.0030.00915.86
7.1.90.0060.00315.61
7.1.80.0070.00715.46
7.1.70.0050.00816.38
7.1.60.0050.00816.48
7.1.50.0030.00515.54
7.1.40.0140.00315.68
7.1.30.0080.00415.73
7.1.20.0140.04927.91
7.1.10.0100.04218.90
7.1.00.0040.04419.02
7.0.330.0070.00315.24
7.0.320.0030.00815.07
7.0.310.0070.00015.13
7.0.300.0040.00715.33
7.0.290.0040.00815.08
7.0.280.0130.00615.39
7.0.270.0050.00515.23
7.0.260.0050.00515.30
7.0.250.0040.00415.27
7.0.240.0100.00015.52
7.0.230.0060.00615.16
7.0.220.0080.00415.22
7.0.210.0070.00715.08
7.0.200.0070.01215.97
7.0.190.0120.00315.27
7.0.180.0120.00315.29
7.0.170.0070.00715.25
7.0.160.0120.03318.66
7.0.150.0080.03818.49
7.0.140.0140.02518.62
7.0.130.0080.04518.52
7.0.120.0110.04518.59
7.0.110.0080.03318.59
7.0.100.0080.03118.41
7.0.90.0070.03518.44
7.0.80.0060.03718.70
7.0.70.0020.03818.53
7.0.60.0030.03718.53
7.0.50.0140.03718.63
7.0.40.0120.03017.59
7.0.30.0080.03617.63
7.0.20.0100.03017.53
7.0.10.0080.03217.46
7.0.00.0070.04017.62
5.6.380.0060.00914.29
5.6.370.0030.01014.49
5.6.360.0120.00214.37
5.6.350.0050.00914.60
5.6.340.0000.01314.56
5.6.330.0120.00214.00
5.6.320.0090.00614.07
5.6.310.0030.00614.21
5.6.300.0040.03817.52
5.6.290.0030.03517.48
5.6.280.0150.03317.67
5.6.270.0080.04217.50
5.6.260.0050.04817.49
5.6.250.0100.03917.47
5.6.240.0050.04817.64
5.6.230.0130.04017.51
5.6.220.0090.03217.46
5.6.210.0150.03217.43
5.6.200.0100.04217.50
5.6.190.0080.03517.68
5.6.180.0130.03517.40
5.6.170.0080.03517.56
5.6.160.0110.03817.36
5.6.150.0050.03617.61
5.6.140.0170.03717.52
5.6.130.0080.03317.42
5.6.120.0030.03917.59
5.6.110.0120.02817.54
5.6.100.0130.03117.56
5.6.90.0110.04217.32
5.6.80.0100.03617.16
5.6.70.0100.03217.02
5.6.60.0100.04216.97
5.6.50.0090.03517.08
5.6.40.0120.03517.21
5.6.30.0180.03017.10
5.6.20.0100.03317.03
5.6.10.0130.03517.25
5.6.00.0120.03417.21
5.5.380.0050.04514.15
5.5.370.0110.03414.20
5.5.360.0100.04114.15
5.5.350.0120.03614.35
5.5.340.0100.02814.39
5.5.330.0070.04214.49
5.5.320.0110.03914.40
5.5.310.0090.03114.63
5.5.300.0100.03514.49
5.5.290.0070.03514.37
5.5.280.0090.03214.48
5.5.270.0070.03214.28
5.5.260.0050.04014.48
5.5.250.0060.03114.35
5.5.240.0080.02714.03
5.5.230.0080.03214.09
5.5.220.0090.03114.04
5.5.210.0050.03413.92
5.5.200.0100.02814.07
5.5.190.0060.03414.07
5.5.180.0120.03314.17
5.5.170.0180.00311.05
5.5.160.0070.04214.19
5.5.150.0100.03714.08
5.5.140.0200.03013.96
5.5.130.0160.04314.12
5.5.120.0170.03014.20
5.5.110.0180.04014.14
5.5.100.0260.03014.18
5.5.90.0110.03614.25
5.5.80.0140.03214.18
5.5.70.0270.03814.29
5.5.60.0320.03514.15
5.5.50.0110.03514.11
5.5.40.0090.04114.13
5.5.30.0070.03014.12
5.5.20.0120.03514.21
5.5.10.0130.03014.19
5.5.00.0080.04014.19
5.4.450.0040.03515.19
5.4.440.0050.03515.09
5.4.430.0100.02515.11
5.4.420.0030.04015.15
5.4.410.0160.03015.00
5.4.400.0050.03314.82
5.4.390.0070.03615.06
5.4.380.0050.03214.93
5.4.370.0180.02715.08
5.4.360.0120.03715.07
5.4.350.0170.02714.94
5.4.340.0150.04014.92
5.4.330.0140.00711.18
5.4.320.0200.02715.03
5.4.310.0180.03214.94
5.4.300.0200.02715.07
5.4.290.0080.03714.92
5.4.280.0100.03215.05
5.4.270.0110.04115.01
5.4.260.0210.02715.01
5.4.250.0090.03315.08
5.4.240.0130.02314.88
5.4.230.0120.03214.81
5.4.220.0080.03514.80
5.4.210.0010.03615.00
5.4.200.0190.02314.92
5.4.190.0080.03314.96
5.4.180.0170.03714.99
5.4.170.0150.03514.87
5.4.160.0140.03014.98
5.4.150.0130.03914.63
5.4.140.0080.02913.62
5.4.130.0050.02813.63
5.4.120.0020.03313.67
5.4.110.0070.03213.73
5.4.100.0060.03213.71
5.4.90.0060.02613.83
5.4.80.0150.03113.76
5.4.70.0120.02613.74
5.4.60.0150.03013.73
5.4.50.0060.03013.79
5.4.40.0090.03113.62
5.4.30.0120.02613.83
5.4.20.0120.02913.56
5.4.10.0050.03613.68
5.4.00.0130.03513.54
5.3.290.0060.03812.44
5.3.280.0100.03412.31
5.3.270.0050.03812.45
5.3.260.0080.03312.52
5.3.250.0060.02912.47
5.3.240.0090.04012.32
5.3.230.0030.03212.56
5.3.220.0070.02812.47
5.3.210.0020.03212.36
5.3.200.0110.03212.53
5.3.190.0140.02312.41
5.3.180.0150.03512.62
5.3.170.0080.03212.53
5.3.160.0120.02512.33
5.3.150.0110.02512.43
5.3.140.0060.02912.38
5.3.130.0120.03312.51
5.3.120.0100.03512.37
5.3.110.0050.03212.54
5.3.100.0100.02512.21
5.3.90.0110.03112.19
5.3.80.0040.03212.23
5.3.70.0120.02312.26
5.3.60.0130.02712.08
5.3.50.0130.03512.17
5.3.40.0130.02912.09
5.3.30.0200.02512.20
5.3.20.0200.03211.85
5.3.10.0140.03311.87
5.3.00.0160.02511.81
5.2.170.0060.02610.40
5.2.160.0130.02810.44
5.2.150.0130.02710.31
5.2.140.0180.02310.51
5.2.130.0180.02510.41
5.2.120.0150.02010.38
5.2.110.0160.02110.42
5.2.100.0070.02310.37
5.2.90.0070.02210.37
5.2.80.0070.02210.40
5.2.70.0080.02310.41
5.2.60.0070.02010.39
5.2.50.0080.02210.34
5.2.40.0040.02610.38
5.2.30.0090.02810.22
5.2.20.0110.03210.28
5.2.10.0040.02410.17
5.2.00.0070.02110.22
5.1.60.0050.0189.94
5.1.50.0080.0189.87
5.1.40.0080.0179.74
5.1.30.0040.02510.03
5.1.20.0040.02010.04
5.1.10.0040.0239.98
5.1.00.0060.0209.89
5.0.50.0070.0189.21
5.0.40.0060.0129.21
5.0.30.0010.0249.21
5.0.20.0070.0129.21
5.0.10.0080.0159.21
5.0.00.0050.0229.21
4.4.90.0040.0139.21
4.4.80.0030.0139.21
4.4.70.0050.0119.21
4.4.60.0020.0159.21
4.4.50.0030.0169.21
4.4.40.0040.0199.21
4.4.30.0060.0129.21
4.4.20.0070.0129.21
4.4.10.0030.0139.21
4.4.00.0030.0239.21
4.3.110.0050.0109.21
4.3.100.0000.0149.21
4.3.90.0020.0119.21
4.3.80.0030.0189.21
4.3.70.0060.0139.21
4.3.60.0020.0149.21
4.3.50.0060.0109.21
4.3.40.0000.0189.21
4.3.30.0020.0139.21
4.3.20.0050.0109.21
4.3.10.0030.0129.21
4.3.00.0020.0139.21

preferences:
29.65 ms | 403 KiB | 5 Q