3v4l.org

run code in 300+ PHP versions simultaneously
<?php $index = "stuff string"; $data = 'foo'; $cache_id = 'bar'; $tmparr = new stdClass; $tmparr->name = $cache_id; $tmparr->size = strlen($data); $index[] = $tmparr; var_dump($index);

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.0130.00318.55
8.3.120.0040.00418.60
8.3.110.0080.00016.77
8.3.100.0030.00616.58
8.3.90.0140.00426.77
8.3.80.0080.00417.97
8.3.70.0090.00916.63
8.3.60.0060.00918.56
8.3.50.0180.00521.96
8.3.40.0140.00718.85
8.3.30.0090.00918.79
8.3.20.0060.00319.15
8.3.10.0080.00021.94
8.3.00.0100.00019.79
8.2.250.0060.01218.61
8.2.240.0060.00316.57
8.2.230.0030.00520.94
8.2.220.0060.00324.06
8.2.210.0070.01126.77
8.2.200.0030.00618.41
8.2.190.0000.01518.41
8.2.180.0110.00716.50
8.2.170.0140.00722.96
8.2.160.0030.01018.82
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00022.26
8.2.120.0040.00426.35
8.2.110.0100.00020.40
8.2.100.0070.00417.72
8.2.90.0000.01118.14
8.2.80.0030.00517.97
8.2.70.0000.00817.80
8.2.60.0040.00418.22
8.2.50.0050.00518.10
8.2.40.0030.00522.15
8.2.30.0050.00321.10
8.2.20.0040.00417.81
8.2.10.0000.00818.12
8.2.00.0040.00418.01
8.1.300.0060.01218.46
8.1.290.0040.00430.84
8.1.280.0070.00725.92
8.1.270.0040.00423.96
8.1.260.0040.00428.09
8.1.250.0020.00528.09
8.1.240.0100.00022.19
8.1.230.0080.00422.09
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0100.00017.35
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0040.00418.60
8.1.160.0040.00418.94
8.1.150.0060.00320.61
8.1.140.0040.00419.40
8.1.130.0070.00017.53
8.1.120.0000.00717.41
8.1.110.0040.00417.38
8.1.100.0030.00317.33
8.1.90.0000.00817.37
8.1.80.0040.00417.41
8.1.70.0030.00317.44
8.1.60.0000.00717.45
8.1.50.0050.00317.52
8.1.40.0000.00817.59
8.1.30.0050.00317.66
8.1.20.0060.00317.57
8.1.10.0040.00417.60
8.1.00.0000.00717.53
8.0.300.0040.00419.87
8.0.290.0080.00016.63
8.0.280.0030.00518.30
8.0.270.0030.00516.83
8.0.260.0030.00317.30
8.0.250.0050.00316.89
8.0.240.0070.00016.86
8.0.230.0040.00417.00
8.0.220.0070.00016.81
8.0.210.0070.00016.91
8.0.200.0000.00716.85
8.0.190.0040.00417.00
8.0.180.0040.00416.96
8.0.170.0040.00416.86
8.0.160.0040.00416.92
8.0.150.0050.00216.90
8.0.140.0050.00216.88
8.0.130.0030.00313.26
8.0.120.0060.00316.73
8.0.110.0090.00016.77
8.0.100.0040.00416.82
8.0.90.0040.00416.95
8.0.80.0000.01416.90
8.0.70.0040.00316.79
8.0.60.0000.00716.86
8.0.50.0040.00416.84
8.0.30.0130.00617.03
8.0.20.0110.01117.40
8.0.10.0000.00716.87
8.0.00.0110.00716.94
7.4.330.0000.00615.08
7.4.320.0060.00016.39
7.4.300.0000.00616.51
7.4.290.0070.00016.56
7.4.280.0040.00416.63
7.4.270.0030.00316.58
7.4.260.0000.00716.44
7.4.250.0070.00016.43
7.4.240.0030.00316.43
7.4.230.0070.00016.50
7.4.220.0030.01416.56
7.4.210.0060.00916.64
7.4.200.0070.00016.34
7.4.160.0120.00816.50
7.4.150.0090.00917.40
7.4.140.0140.01117.86
7.4.130.0070.01216.48
7.4.120.0090.00816.51
7.4.110.0110.00816.60
7.4.100.0060.01416.46
7.4.90.0170.00316.55
7.4.80.0090.00919.39
7.4.70.0030.01316.59
7.4.60.0090.00616.48
7.4.50.0040.01116.60
7.4.40.0040.01416.37
7.4.30.0120.00316.56
7.4.00.0000.01715.26
7.3.330.0000.00613.33
7.3.320.0030.00313.27
7.3.310.0070.00016.32
7.3.300.0000.00616.35
7.3.290.0120.00416.36
7.3.280.0090.00916.36
7.3.270.0140.00417.40
7.3.260.0090.01016.37
7.3.250.0110.00816.50
7.3.240.0100.01116.51
7.3.230.0060.01016.39
7.3.210.0100.00716.58
7.3.200.0070.01016.57
7.3.190.0100.00616.50
7.3.180.0100.00716.45
7.3.170.0190.00316.61
7.3.160.0130.01016.38
7.3.120.0100.00714.63
7.3.110.0000.01215.11
7.3.100.0120.00315.00
7.3.90.0120.00614.85
7.3.80.0030.00714.69
7.3.70.0120.00314.75
7.3.60.0050.00814.60
7.3.50.0040.00714.68
7.3.40.0030.01014.83
7.3.30.0030.00614.81
7.3.20.0030.00716.76
7.3.10.0080.00016.91
7.3.00.0040.00716.43
7.2.330.0170.00316.68
7.2.320.0110.01116.64
7.2.310.0080.00816.36
7.2.300.0090.00916.44
7.2.290.0130.00716.36
7.2.240.0070.01014.78
7.2.230.0070.01114.91
7.2.220.0120.00314.78
7.2.210.0030.01015.14
7.2.200.0100.00015.07
7.2.190.0040.00814.95
7.2.180.0000.00914.77
7.2.170.0040.00715.06
7.2.160.0040.01114.93
7.2.150.0030.01416.86
7.2.140.0030.00616.83
7.2.130.0090.00617.09
7.2.120.0080.00616.93
7.2.110.0040.01116.82
7.2.100.0060.00316.78
7.2.90.0000.01016.87
7.2.80.0000.00816.85
7.2.70.0030.00916.95
7.2.60.0050.00916.92
7.2.50.0030.00616.99
7.2.40.0030.00617.04
7.2.30.0090.00316.93
7.2.20.0110.00316.91
7.2.10.0060.00616.68
7.2.00.0030.01118.11
7.1.330.0060.01015.56
7.1.320.0100.00315.78
7.1.310.0030.01015.71
7.1.300.0040.01215.76
7.1.290.0030.00915.61
7.1.280.0000.00915.78
7.1.270.0080.00315.74
7.1.260.0030.00615.73
7.1.250.0060.00915.70
7.1.200.0000.01015.52
7.1.100.0060.00617.90
7.1.70.0100.00316.84
7.1.60.0120.00619.75
7.1.50.0100.01416.71
7.1.00.0000.08022.45
7.0.200.0140.00714.89
7.0.90.0370.05020.09
7.0.80.0230.05719.99
7.0.70.0270.05719.91
7.0.60.0370.04319.94
7.0.50.0270.06320.25
7.0.40.0300.07320.35
7.0.30.0370.06720.38
7.0.20.0270.06320.25
7.0.10.0200.07020.38
7.0.00.0230.06720.30
5.6.240.0130.06720.73
5.6.230.0130.05320.81
5.6.220.0100.05320.70
5.6.210.0000.07020.86
5.6.200.0170.08321.00
5.6.190.0200.06021.02
5.6.180.0070.09021.08
5.6.170.0070.06721.07
5.6.160.0100.05721.08
5.6.150.0270.04021.08
5.6.140.0070.05721.05
5.6.130.0100.06021.07
5.6.120.0100.06721.09
5.6.110.0200.05721.09
5.6.100.0130.05321.06
5.6.90.0170.05321.09
5.6.80.0130.05020.47
5.6.70.0130.05020.42
5.6.60.0200.04720.43
5.6.50.0170.04720.46
5.6.40.0100.05720.43
5.6.30.0130.06720.42
5.6.20.0100.05720.38
5.6.10.0070.05320.43
5.6.00.0030.06020.37

preferences:
28.05 ms | 403 KiB | 5 Q