3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() {} function bar() {return null;} $x=foo(); $y=bar(); echo gettype($x)."\n"; echo gettype($y)."\n"; echo isset($x)?"true\n":"false\n"; echo isset($y)?"true\n":"false\n"; echo is_null($x)?"true\n":"false\n"; echo is_null($y)?"true\n":"false\n";

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.130.0080.00018.29
8.3.120.0100.00020.71
8.3.110.0030.00620.94
8.3.100.0070.00416.78
8.3.90.0040.00426.77
8.3.80.0040.00816.38
8.3.70.0110.00416.63
8.3.60.0070.01118.30
8.3.50.0120.01121.07
8.3.40.0070.00718.54
8.3.30.0110.00318.67
8.3.20.0080.00020.30
8.3.10.0050.00321.73
8.3.00.0070.00417.63
8.2.250.0030.00619.02
8.2.240.0040.00418.68
8.2.230.0140.00722.58
8.2.220.0000.02324.06
8.2.210.0070.00026.77
8.2.200.0030.00616.50
8.2.190.0040.01116.58
8.2.180.0080.00818.16
8.2.170.0040.01118.79
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0040.00421.04
8.2.110.0030.00719.14
8.2.100.0120.00017.84
8.2.90.0090.00017.75
8.2.80.0000.00817.97
8.2.70.0080.00017.50
8.2.60.0030.00517.63
8.2.50.0060.00317.63
8.2.40.0080.00017.63
8.2.30.0040.00422.48
8.2.20.0000.00717.74
8.2.10.0000.00718.06
8.2.00.0040.00417.99
8.1.300.0060.00320.09
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00322.00
8.1.230.0090.00320.96
8.1.220.0080.00317.74
8.1.210.0090.00018.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0060.00318.68
8.1.160.0000.00722.07
8.1.150.0000.00718.88
8.1.140.0000.00817.40
8.1.130.0000.01017.66
8.1.120.0020.00617.36
8.1.110.0080.00017.51
8.1.100.0020.00517.46
8.1.90.0030.00317.41
8.1.80.0050.00317.38
8.1.70.0050.00317.47
8.1.60.0000.00717.63
8.1.50.0090.00017.37
8.1.40.0030.00617.50
8.1.30.0050.00317.65
8.1.20.0040.00417.58
8.1.10.0000.00717.50
8.1.00.0000.00717.34
8.0.300.0070.00019.68
8.0.290.0000.00716.75
8.0.280.0000.00818.41
8.0.270.0000.00716.82
8.0.260.0000.00717.26
8.0.250.0040.00417.03
8.0.240.0000.00716.84
8.0.230.0040.00417.02
8.0.220.0000.00716.88
8.0.210.0050.00316.89
8.0.200.0000.00616.91
8.0.190.0080.00016.91
8.0.180.0050.00316.85
8.0.170.0040.00416.79
8.0.160.0050.00216.89
8.0.150.0000.00716.73
8.0.140.0040.00416.81
8.0.130.0030.00313.38
8.0.120.0030.00516.75
8.0.110.0000.00716.82
8.0.100.0040.00416.82
8.0.90.0040.00416.86
8.0.80.0150.00016.87
8.0.70.0030.00416.90
8.0.60.0000.00816.86
8.0.50.0070.00016.85
8.0.30.0070.00817.25
8.0.20.0120.00717.40
8.0.10.0040.00417.02
8.0.00.0080.01016.90
7.4.330.0030.00315.08
7.4.320.0030.00316.50
7.4.300.0060.00016.51
7.4.290.0000.00716.53
7.4.280.0030.00616.42
7.4.270.0030.00516.59
7.4.260.0040.00416.46
7.4.250.0040.00416.36
7.4.240.0040.00316.54
7.4.230.0030.00316.52
7.4.220.0120.00616.62
7.4.210.0100.00416.64
7.4.200.0030.00316.68
7.4.160.0100.01016.41
7.4.150.0130.00317.40
7.4.140.0130.01217.86
7.4.130.0080.01116.38
7.4.120.0040.01416.53
7.4.110.0140.00316.49
7.4.100.0210.00316.57
7.4.90.0070.01016.55
7.4.80.0040.01319.39
7.4.70.0160.00016.68
7.4.60.0030.01216.35
7.4.50.0000.00816.58
7.4.40.0160.00016.54
7.4.30.0030.01316.25
7.4.20.0060.00916.36
7.4.10.0160.00016.41
7.4.00.0090.00815.80
7.3.330.0030.00513.33
7.3.320.0000.00513.30
7.3.310.0040.00316.13
7.3.300.0000.00716.29
7.3.290.0070.01316.27
7.3.280.0110.00816.27
7.3.270.0100.00717.40
7.3.260.0090.00916.43
7.3.250.0100.00616.48
7.3.240.0070.01316.52
7.3.230.0080.01116.46
7.3.210.0130.00316.56
7.3.200.0100.01016.55
7.3.190.0030.01216.32
7.3.180.0070.00816.33
7.3.170.0160.00616.51
7.3.160.0070.01016.36
7.3.150.0090.00616.51
7.3.140.0040.01116.49
7.3.130.0060.00916.28
7.3.120.0090.00616.44
7.3.110.0060.00916.26
7.3.100.0060.00916.26
7.3.90.0090.00616.49
7.3.80.0030.01216.37
7.3.70.0090.00616.46
7.3.60.0090.00616.30
7.3.50.0000.01516.43
7.3.40.0120.00316.48
7.3.30.0080.00816.28
7.3.20.0080.00816.19
7.3.10.0230.00516.39
7.3.00.0120.00816.17
7.2.330.0090.00916.73
7.2.320.0100.01016.34
7.2.310.0030.01416.64
7.2.300.0080.00816.68
7.2.290.0060.01016.74
7.2.280.0110.00616.49
7.2.270.0040.01216.80
7.2.260.0100.00616.72
7.2.250.0130.00916.74
7.2.240.0100.00716.71
7.2.230.0090.00816.41
7.2.220.0100.00616.51
7.2.210.0040.01216.66
7.2.200.0160.00016.49
7.2.190.0090.00616.45
7.2.180.0090.00616.48
7.2.170.0060.00916.47
7.2.160.0030.01616.72
7.2.150.0130.00316.57
7.2.140.0080.00816.50
7.2.130.0120.00716.70
7.2.120.0080.00816.63
7.2.110.0120.00616.45
7.2.100.0120.00416.60
7.2.90.0100.00716.66
7.2.80.0080.00816.77
7.2.70.0100.01216.72
7.2.60.0140.00616.66
7.2.50.0130.00516.76
7.2.40.0140.00716.63
7.2.30.0140.00616.69
7.2.20.0120.00716.76
7.2.10.0110.01116.58
7.2.00.0100.00616.86
7.1.330.0090.00615.45
7.1.320.0060.01015.51
7.1.310.0040.01215.61
7.1.300.0060.00915.54
7.1.290.0110.00415.48
7.1.280.0030.01215.45
7.1.270.0140.00015.53
7.1.260.0060.00915.27
7.1.250.0080.01215.79
7.1.240.0070.00715.61
7.1.230.0340.01415.47
7.1.220.0090.00615.47
7.1.210.0030.01215.57
7.1.200.0100.00715.55
7.1.190.0200.00015.35
7.1.180.0060.00915.76
7.1.170.0060.01015.45
7.1.160.0080.00815.44
7.1.150.0030.01315.76
7.1.140.0130.00315.60
7.1.130.0090.00615.61
7.1.120.0070.00715.43
7.1.110.0110.00415.54
7.1.100.0040.01115.57
7.1.90.0030.01315.54
7.1.80.0190.00315.46
7.1.70.0070.00716.36
7.1.60.0080.00816.19
7.1.50.0120.00516.19
7.1.40.0120.00716.21
7.1.30.0070.01215.93
7.1.20.0090.00815.96
7.1.10.0060.00915.84
7.1.00.0100.01216.18
7.0.330.0220.00415.14
7.0.320.0170.00615.11
7.0.310.0190.01115.15
7.0.300.0190.00715.19
7.0.290.0190.00615.10
7.0.280.0160.00815.24
7.0.270.0170.00615.24
7.0.260.0200.00315.10
7.0.250.0140.01115.34
7.0.240.0360.00515.34
7.0.230.0190.00515.51
7.0.220.0050.02215.22
7.0.210.0180.01515.04
7.0.200.0110.00915.99
7.0.190.0120.00715.96
7.0.180.0170.00715.63
7.0.170.0190.00315.67
7.0.160.0120.01115.73
7.0.150.0170.00715.85
7.0.140.0100.01215.67
7.0.130.0120.00915.74
7.0.120.0240.00515.96
7.0.110.0140.00815.72
7.0.100.0070.01515.80
7.0.90.0140.00815.90
7.0.80.0110.01115.93
7.0.70.0120.00915.81
7.0.60.0150.00615.55
7.0.50.0100.01215.72
7.0.40.0120.00515.70
7.0.30.0160.00415.75
7.0.20.0110.00815.72
7.0.10.0130.00615.63
7.0.00.0080.01015.65
5.6.400.0200.00715.96
5.6.390.0150.01015.80
5.6.380.0110.01416.05
5.6.370.0230.01015.79
5.6.360.0220.00415.85
5.6.350.0100.01616.07
5.6.340.0090.01815.69
5.6.330.0210.00316.05
5.6.320.0110.01815.75
5.6.310.0150.01015.87
5.6.300.0070.03118.33
5.6.290.0130.03118.47
5.6.280.0160.03718.39
5.6.270.0170.02818.44
5.6.260.0130.02918.55
5.6.250.0130.02818.47
5.6.240.0140.04618.55
5.6.230.0080.03518.35
5.6.220.0110.03418.37
5.6.210.0120.02918.16
5.6.200.0170.02118.30
5.6.190.0100.03518.46
5.6.180.0150.02418.47
5.6.170.0120.02918.46
5.6.160.0090.03118.37
5.6.150.0130.03218.38
5.6.140.0150.02618.42
5.6.130.0120.02618.40
5.6.120.0180.03018.44
5.6.110.0130.02818.36
5.6.100.0130.02418.39
5.6.90.0120.02618.29
5.6.80.0140.02418.05
5.6.70.0070.03118.22
5.6.60.0120.02617.98
5.6.50.0070.02918.09
5.6.40.0060.04918.04
5.6.30.0130.02718.04
5.6.20.0170.02218.10
5.6.10.0150.02318.07
5.6.00.0090.02717.92
5.5.380.0130.02616.65
5.5.370.0120.04216.66
5.5.360.0110.02816.79
5.5.350.0140.02416.63
5.5.340.0160.02216.91
5.5.330.0150.02317.03
5.5.320.0100.02716.99
5.5.310.0150.02916.97
5.5.300.0130.02516.89
5.5.290.0150.02817.08
5.5.280.0130.02917.05
5.5.270.0140.02716.87
5.5.260.0090.03016.99
5.5.250.0150.02416.81
5.5.240.0140.03016.68
5.5.230.0160.02716.61
5.5.220.0160.02516.61
5.5.210.0100.04016.71
5.5.200.0090.02716.58
5.5.190.0140.02416.54
5.5.180.0110.02916.44
5.5.170.0130.01315.60
5.5.160.0150.03016.62
5.5.150.0150.03016.57
5.5.140.0110.02916.67
5.5.130.0210.02916.58
5.5.120.0130.02516.69
5.5.110.0130.02616.47
5.5.100.0080.03016.43
5.5.90.0130.02716.43
5.5.80.0090.02716.36
5.5.70.0130.02516.64
5.5.60.0120.02316.56
5.5.50.0100.03516.46
5.5.40.0080.02616.56
5.5.30.0210.02716.44
5.5.20.0120.02516.53
5.5.10.0100.02616.46
5.5.00.0140.02316.49
5.4.450.0180.02216.12
5.4.440.0090.02516.14
5.4.430.0070.03415.96
5.4.420.0140.02416.02
5.4.410.0070.02415.90
5.4.400.0120.02315.86
5.4.390.0080.02515.82
5.4.380.0140.02216.01
5.4.370.0100.03415.92
5.4.360.0090.03016.03
5.4.350.0120.02215.85
5.4.340.0140.02015.82
5.4.330.0140.00712.63
5.4.320.0120.02515.86
5.4.310.0100.02715.91
5.4.300.0070.02716.06
5.4.290.0110.02515.94
5.4.280.0080.02515.87
5.4.270.0130.02015.92
5.4.260.0100.02715.82
5.4.250.0090.02515.89
5.4.240.0080.02715.77
5.4.230.0110.02315.78
5.4.220.0090.02315.88
5.4.210.0070.02515.82
5.4.200.0070.02515.83
5.4.190.0110.02315.97
5.4.180.0140.03115.76
5.4.170.0130.02715.84
5.4.160.0100.02715.83
5.4.150.0130.02215.80
5.4.140.0130.02714.77
5.4.130.0150.01814.72
5.4.120.0140.02214.71
5.4.110.0120.02714.66
5.4.100.0100.02114.68
5.4.90.0090.02514.62
5.4.80.0150.01714.77
5.4.70.0120.02114.68
5.4.60.0080.02314.58
5.4.50.0100.02114.63
5.4.40.0090.02614.75
5.4.30.0070.02414.68
5.4.20.0100.02314.56
5.4.10.0100.02314.69
5.4.00.0130.01914.38
5.3.290.0120.02414.69
5.3.280.0180.01414.63
5.3.270.0070.02814.59
5.3.260.0140.02314.68
5.3.250.0080.02314.74
5.3.240.0080.02814.56
5.3.230.0140.02014.59
5.3.220.0190.04414.49
5.3.210.0100.02214.44
5.3.200.0080.02514.45
5.3.190.0070.02814.50
5.3.180.0070.02814.59
5.3.170.0110.02214.61
5.3.160.0140.01914.58
5.3.150.0150.01814.65
5.3.140.0070.02614.52
5.3.130.0090.03114.54
5.3.120.0120.02114.56
5.3.110.0110.02414.53
5.3.100.0070.02514.67
5.3.90.0100.02414.58
5.3.80.0080.02214.53
5.3.70.0100.02614.50
5.3.60.0140.02514.56
5.3.50.0120.02414.52
5.3.40.0180.02314.48
5.3.30.0070.02414.69
5.3.20.0080.02514.51
5.3.10.0070.02314.42
5.3.00.0080.02214.43
5.2.170.0120.01814.10
5.2.160.0060.02014.10
5.2.150.0070.02014.07
5.2.140.0220.02014.05
5.2.130.0040.02614.01
5.2.120.0060.02014.04
5.2.110.0080.01814.07
5.2.100.0110.01614.13
5.2.90.0090.02114.01
5.2.80.0100.01814.01
5.2.70.0090.01913.98
5.2.60.0070.01913.97
5.2.50.0080.01714.00
5.2.40.0020.02414.03
5.2.30.0060.01813.94
5.2.20.0080.01913.93
5.2.10.0050.01913.91
5.2.00.0060.02113.91
5.1.60.0050.01713.91
5.1.50.0110.01413.91
5.1.40.0080.01713.91
5.1.30.0090.01613.91
5.1.20.0070.01713.91
5.1.10.0080.01413.91
5.1.00.0070.01713.91
5.0.50.0070.01113.91
5.0.40.0070.01213.91
5.0.30.0060.02313.91
5.0.20.0060.01213.91
5.0.10.0070.01313.91
5.0.00.0050.01713.91
4.4.90.0040.01113.91
4.4.80.0020.01113.91
4.4.70.0020.01113.91
4.4.60.0050.01013.91
4.4.50.0020.01013.91
4.4.40.0040.01413.91
4.4.30.0020.01013.91
4.4.20.0040.00813.91
4.4.10.0040.01213.91
4.4.00.0040.01313.91
4.3.110.0060.00813.91
4.3.100.0030.01013.91
4.3.90.0060.00913.91
4.3.80.0040.01413.91
4.3.70.0060.00613.91
4.3.60.0080.00813.91
4.3.50.0040.00913.91
4.3.40.0030.01413.91
4.3.30.0020.01313.91
4.3.20.0030.01013.91
4.3.10.0020.01113.91
4.3.00.0020.01113.91

preferences:
29.59 ms | 403 KiB | 5 Q