3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = (int) 'foobar'; var_dump($foo); function int(int $foo) { var_dump($foo); } int('foobar');

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.60.0100.01016.49
8.3.50.0110.01122.05
8.3.40.0000.01518.59
8.3.30.0070.00718.85
8.3.20.0040.00420.34
8.3.10.0000.00923.53
8.3.00.0080.00019.25
8.2.180.0140.00016.63
8.2.170.0100.01022.96
8.2.160.0070.00720.36
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0060.00317.50
8.2.120.0040.00426.35
8.2.110.0000.00920.97
8.2.100.0040.00817.63
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0000.00918.04
8.2.50.0000.00818.07
8.2.40.0060.00319.34
8.2.30.0000.00720.69
8.2.20.0030.00617.63
8.2.10.0000.00818.07
8.2.00.0040.00417.92
8.1.280.0080.00625.92
8.1.270.0060.00323.97
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0040.00422.75
8.1.230.0060.00617.52
8.1.220.0040.00417.74
8.1.210.0080.00418.77
8.1.200.0080.00017.23
8.1.190.0040.00417.34
8.1.180.0070.00018.10
8.1.170.0040.00418.71
8.1.160.0040.00421.91
8.1.150.0070.00018.75
8.1.140.0030.00619.39
8.1.130.0030.00317.56
8.1.120.0070.00017.30
8.1.110.0070.00017.43
8.1.100.0040.00417.29
8.1.90.0040.00417.30
8.1.80.0000.00717.32
8.1.70.0030.00317.25
8.1.60.0040.00417.45
8.1.50.0030.00517.41
8.1.40.0030.00517.54
8.1.30.0040.00417.53
8.1.20.0000.00817.53
8.1.10.0030.00517.59
8.1.00.0020.00517.51
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.39
8.0.270.0000.00817.07
8.0.260.0000.00617.24
8.0.250.0080.00016.96
8.0.240.0000.00616.98
8.0.230.0050.00317.00
8.0.220.0040.00416.78
8.0.210.0030.00316.79
8.0.200.0000.00616.97
8.0.190.0040.00416.96
8.0.180.0040.00416.81
8.0.170.0040.00416.92
8.0.160.0000.00716.93
8.0.150.0000.00816.73
8.0.140.0000.00716.87
8.0.130.0030.00413.27
8.0.120.0040.00416.77
8.0.110.0000.00716.78
8.0.100.0050.00216.78
8.0.90.0030.00516.76
8.0.80.0090.00616.82
8.0.70.0080.00016.84
8.0.60.0040.00417.01
8.0.50.0030.00516.91
8.0.30.0080.01217.00
8.0.20.0050.01417.40
8.0.10.0000.00717.07
8.0.00.0120.00516.72
7.4.330.0030.00216.79
7.4.320.0030.00316.44
7.4.300.0070.00016.50
7.4.290.0000.00616.60
7.4.280.0000.00816.68
7.4.270.0060.00016.57
7.4.260.0050.00216.64
7.4.250.0000.00816.47
7.4.240.0030.00416.55
7.4.230.0030.00316.70
7.4.220.0070.01016.45
7.4.210.0060.01316.46
7.4.200.0030.00316.42
7.4.160.0090.00616.58
7.4.150.0050.01117.40
7.4.140.0120.00717.86
7.4.130.0150.00316.38
7.4.120.0140.00316.54
7.4.110.0090.00916.47
7.4.100.0140.00416.71
7.4.90.0150.00316.44
7.4.80.0130.00319.39
7.4.70.0000.01616.48
7.4.60.0110.00616.51
7.4.50.0090.00316.39
7.4.40.0060.00916.27
7.4.30.0070.01116.58
7.4.00.0030.01314.95
7.3.330.0050.00213.16
7.3.320.0000.00513.16
7.3.310.0000.00716.33
7.3.300.0030.00316.15
7.3.290.0070.00816.29
7.3.280.0040.01116.30
7.3.270.0120.00617.40
7.3.260.0140.00316.70
7.3.240.0050.01116.23
7.3.230.0100.00616.54
7.3.210.0100.00716.47
7.3.200.0080.01516.25
7.3.190.0170.00516.55
7.3.180.0040.01116.46
7.3.170.0070.01016.37
7.3.160.0040.01116.28
7.2.330.0100.00716.59
7.2.320.0130.01016.55
7.2.310.0150.00416.55
7.2.300.0130.00316.33
7.2.290.0060.01016.64
7.2.60.0000.01116.78
7.2.00.0000.01219.07
7.1.200.0040.00715.74
7.1.100.0060.00618.08
7.1.70.0000.01116.84
7.1.60.0070.01519.12
7.1.50.0070.01416.94
7.1.00.0100.07022.36
7.0.200.0000.00716.57
7.0.60.0200.04719.92
7.0.50.0070.07717.87
7.0.40.0100.08320.20
7.0.30.0230.08020.30
7.0.20.0230.07720.15
7.0.10.0070.04020.30
7.0.00.0070.07720.09
5.6.280.0000.05720.78
5.6.210.0100.08720.57
5.6.200.0030.08718.20
5.6.190.0030.04720.43
5.6.180.0230.08320.57
5.6.170.0330.07720.51
5.6.160.0030.06020.41
5.6.150.0130.07318.12
5.6.140.0000.05318.18
5.6.130.0070.08018.11
5.6.120.0000.06721.02
5.6.110.0100.07021.00
5.6.100.0170.07021.13
5.6.90.0070.07321.08
5.6.80.0200.07020.49
5.5.350.3970.03720.35
5.5.340.0000.04018.04
5.5.330.0100.08020.19
5.5.320.0030.04320.28
5.5.310.0170.04320.24
5.5.300.0070.07317.99
5.5.290.0030.05017.96
5.5.280.0030.07020.78
5.5.270.0000.06020.77
5.5.260.0030.07320.77
5.5.250.0030.08020.66
5.5.240.0300.07320.24

preferences:
53.08 ms | 401 KiB | 5 Q