3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = [ #ints 0,1,2,-1,-2, #floats 0.0,0.1,0.2,1.0,1.1,2.0,2.1, -0.1,-0.2,-1.0,-1.1,-2.0,-2.1, #strings "", "a", "0","@","NULL", #bool true, false, #array [], ["a"],[[]], #object new stdClass, #null NULL,"\0", function(){}, ]; foreach($test as $k => $v){ if(is_scalar($v)){ $j = new stdClass; $j->p = $v; $test[] = $j; } } print_r($test);

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.0070.00716.88
8.3.50.0090.01021.32
8.3.40.0090.00618.65
8.3.30.0120.00318.48
8.3.20.0110.00320.22
8.3.10.0080.00023.70
8.3.00.0040.00423.64
8.2.180.0180.00416.50
8.2.170.0110.00422.96
8.2.160.0100.00320.39
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00419.94
8.2.120.0050.00326.35
8.2.110.0030.00622.13
8.2.100.0040.00817.93
8.2.90.0040.00419.39
8.2.80.0030.00618.04
8.2.70.0000.00917.60
8.2.60.0030.00618.04
8.2.50.0040.00418.07
8.2.40.0040.00422.14
8.2.30.0080.00020.64
8.2.20.0000.00717.67
8.2.10.0050.00318.05
8.2.00.0050.00218.01
8.1.280.0090.00625.92
8.1.270.0050.00323.88
8.1.260.0030.00728.09
8.1.250.0040.00428.09
8.1.240.0030.00624.00
8.1.230.0070.00419.16
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0100.00017.35
8.1.190.0050.00317.25
8.1.180.0040.00418.10
8.1.170.0000.00818.36
8.1.160.0000.00720.78
8.1.150.0080.00018.82
8.1.140.0030.00619.46
8.1.130.0050.00317.65
8.1.120.0030.00317.48
8.1.110.0000.00717.51
8.1.100.0000.00717.53
8.1.90.0030.00517.37
8.1.80.0070.00017.49
8.1.70.0040.00417.41
8.1.60.0030.00517.59
8.1.50.0040.00717.49
8.1.40.0000.00817.53
8.1.30.0000.00817.62
8.1.20.0050.00317.56
8.1.10.0000.00817.62
8.1.00.0080.00017.54
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.40
8.0.270.0070.00017.18
8.0.260.0020.00517.22
8.0.250.0030.00316.86
8.0.240.0000.00716.95
8.0.230.0070.00016.96
8.0.220.0070.00016.88
8.0.210.0000.00816.89
8.0.200.0080.00316.82
8.0.190.0000.00816.91
8.0.180.0070.00016.81
8.0.170.0050.00216.94
8.0.160.0080.00016.81
8.0.150.0000.00716.81
8.0.140.0000.00816.89
8.0.130.0050.00013.32
8.0.120.0050.00316.92
8.0.110.0040.00416.89
8.0.100.0000.00716.96
8.0.90.0030.00517.01
8.0.80.0070.01016.88
8.0.70.0030.00516.96
8.0.60.0040.00416.72
8.0.50.0060.00316.95
8.0.30.0100.00817.16
8.0.20.0060.01317.40
8.0.10.0000.00817.00
8.0.00.0080.01216.76
7.4.330.0000.00516.89
7.4.320.0000.00616.57
7.4.300.0000.00716.62
7.4.290.0000.00816.59
7.4.280.0030.00616.51
7.4.270.0000.00816.61
7.4.260.0070.00016.42
7.4.250.0040.00416.33
7.4.240.0020.00516.61
7.4.230.0000.00716.69
7.4.220.0090.01016.71
7.4.210.0080.00616.67
7.4.200.0000.00716.46
7.4.160.0060.01116.40
7.4.150.0070.01017.40
7.4.140.0060.01217.86
7.4.130.0120.00516.42
7.4.120.0130.00416.52
7.4.110.0140.01516.55
7.4.100.0060.01216.63
7.4.90.0110.00616.50
7.4.80.0040.01619.39
7.4.70.0130.00316.70
7.4.60.0070.01016.41
7.4.50.0000.01216.20
7.4.40.0100.00716.46
7.4.30.0060.01116.61
7.4.00.0030.01314.71
7.3.330.0000.00713.13
7.3.320.0000.00613.13
7.3.310.0030.00316.29
7.3.300.0000.00616.16
7.3.290.0070.00916.29
7.3.280.0120.00516.28
7.3.270.0110.00717.40
7.3.260.0100.00716.43
7.3.250.0070.01116.30
7.3.240.0140.00516.44
7.3.230.0130.00316.68
7.3.210.0130.00516.63
7.3.200.0120.00419.39
7.3.190.0140.00916.27
7.3.180.0090.00916.42
7.3.170.0090.01216.54
7.3.160.0060.00916.66
7.2.330.0100.00716.78
7.2.320.0120.00916.88
7.2.310.0060.01516.39
7.2.300.0130.00316.74
7.2.290.0030.01416.55
7.1.100.0070.00718.30
7.1.70.0110.00017.02
7.1.60.0090.00619.27
7.1.50.0110.01416.83
7.1.00.0070.07322.35
7.0.200.0040.00416.60
7.0.60.0130.07721.66
7.0.50.0070.08317.98
7.0.40.0170.08320.11
7.0.30.0530.06720.09
7.0.20.0270.08320.22
7.0.10.0070.08720.26
7.0.00.0030.06020.23
5.6.280.0070.03020.82
5.6.210.0100.04020.70
5.6.200.0000.05718.17
5.6.190.0030.09020.64
5.6.180.0300.04720.65
5.6.170.0270.07320.54
5.6.160.0130.07720.54
5.6.150.0070.06318.15
5.6.140.0070.08018.14
5.6.130.0200.07018.18
5.6.120.0170.08021.14
5.6.110.0130.05721.01
5.6.100.0100.04020.89
5.6.90.0100.04721.08
5.6.80.0030.07320.39
5.5.350.0100.07720.34
5.5.340.0000.07718.07
5.5.330.0030.04020.27
5.5.320.0530.06020.51
5.5.310.0400.07020.27
5.5.300.0070.06717.98
5.5.290.0030.07017.98
5.5.280.0030.08720.69
5.5.270.0100.03720.89
5.5.260.0100.07320.75
5.5.250.0070.08320.66
5.5.240.0170.07020.28

preferences:
54.49 ms | 401 KiB | 5 Q