3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($obj){ static $c; $c = $c ? $c : function(){ return 'baz'; }; $obj->store = $c; } test($x = new stdclass); test($y = new stdclass); var_dump($x->store === $y->store);

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.70.0070.01116.58
8.3.60.0150.00616.62
8.3.50.0130.00822.10
8.3.40.0110.00418.83
8.3.30.0160.00618.95
8.3.20.0070.00020.30
8.3.10.0050.00321.82
8.3.00.0040.00419.14
8.2.180.0080.00625.92
8.2.170.0070.01118.82
8.2.160.0130.00322.96
8.2.150.0000.00725.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.77
8.2.110.0100.00021.12
8.2.100.0110.00017.78
8.2.90.0030.00617.84
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0000.00817.92
8.2.50.0030.00518.07
8.2.40.0000.00819.95
8.2.30.0040.00418.00
8.2.20.0080.00017.61
8.2.10.0040.00418.08
8.2.00.0040.00417.65
8.1.280.0110.01125.92
8.1.270.0030.00618.86
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00420.94
8.1.230.0040.00720.85
8.1.220.0030.00617.74
8.1.210.0040.00418.90
8.1.200.0090.00017.35
8.1.190.0000.00817.25
8.1.180.0080.00018.10
8.1.170.0040.00418.50
8.1.160.0000.00721.97
8.1.150.0070.00018.82
8.1.140.0040.00419.30
8.1.130.0000.00717.77
8.1.120.0030.00317.47
8.1.110.0040.00417.52
8.1.100.0070.00017.36
8.1.90.0000.00717.38
8.1.80.0040.00417.35
8.1.70.0000.00717.38
8.1.60.0060.00617.42
8.1.50.0000.00817.56
8.1.40.0030.00617.43
8.1.30.0080.00017.71
8.1.20.0110.00017.73
8.1.10.0030.00517.55
8.1.00.0040.00417.52
8.0.300.0040.00420.04
8.0.290.0050.00316.63
8.0.280.0070.00018.45
8.0.270.0060.00316.88
8.0.260.0070.00017.18
8.0.250.0030.00316.92
8.0.240.0070.00016.98
8.0.230.0020.00517.00
8.0.220.0000.00716.89
8.0.210.0080.00016.85
8.0.200.0030.00316.94
8.0.190.0080.00016.98
8.0.180.0000.00716.95
8.0.170.0000.00816.82
8.0.160.0000.00716.96
8.0.150.0050.00216.82
8.0.140.0030.00316.89
8.0.130.0000.00613.36
8.0.120.0080.00016.85
8.0.110.0070.00016.86
8.0.100.0040.00416.93
8.0.90.0030.00316.91
8.0.80.0000.01716.87
8.0.70.0040.00416.72
8.0.60.0000.00716.85
8.0.50.0040.00416.79
8.0.30.0100.01517.06
8.0.20.0090.01317.40
8.0.10.0000.00716.96
8.0.00.0130.00516.72
7.4.330.0070.00015.03
7.4.320.0000.00616.38
7.4.300.0000.00616.65
7.4.290.0030.00316.37
7.4.280.0000.00716.49
7.4.270.0000.00616.46
7.4.260.0040.00416.59
7.4.250.0070.00016.40
7.4.240.0020.00516.57
7.4.230.0030.00316.55
7.4.220.0080.00816.67
7.4.210.0040.01116.64
7.4.200.0030.00316.70
7.4.160.0050.01216.55
7.4.150.0150.00317.40
7.4.140.0120.00417.86
7.4.130.0050.01216.62
7.4.120.0130.00516.60
7.4.110.0060.01216.55
7.4.100.0140.00416.53
7.4.90.0070.01016.49
7.4.80.0070.01019.39
7.4.70.0040.01216.46
7.4.60.0120.00416.58
7.4.50.0000.00916.33
7.4.40.0120.00616.54
7.4.30.0080.00816.52
7.4.00.0030.01515.20
7.3.330.0000.00513.32
7.3.320.0000.00513.18
7.3.310.0030.00316.21
7.3.300.0040.00416.20
7.3.290.0120.00316.34
7.3.280.0080.00916.29
7.3.270.0040.01717.40
7.3.260.0090.00816.39
7.3.250.0130.00816.36
7.3.240.0070.01016.38
7.3.230.0130.00616.39
7.3.210.0060.01016.49
7.3.200.0060.01119.39
7.3.190.0080.00816.55
7.3.180.0070.01016.29
7.3.170.0120.00816.28
7.3.160.0090.01216.54
7.3.120.0070.01014.90
7.3.110.0100.01014.92
7.3.100.0030.01314.96
7.3.90.0060.00614.89
7.3.80.0100.00014.73
7.3.70.0110.00714.64
7.3.60.0030.01014.70
7.3.50.0060.01014.43
7.3.40.0090.00614.86
7.3.30.0060.00314.82
7.3.20.0070.00716.59
7.3.10.0150.00016.84
7.3.00.0000.01016.41
7.2.330.0070.01016.71
7.2.320.0090.01316.84
7.2.310.0140.00316.73
7.2.300.0060.00916.88
7.2.290.0130.00316.71
7.2.250.0000.01615.05
7.2.240.0060.00915.15
7.2.230.0070.01014.82
7.2.220.0000.01814.84
7.2.210.0100.00714.95
7.2.200.0030.01514.89
7.2.190.0110.00715.13
7.2.180.0030.01214.72
7.2.170.0000.01114.89
7.2.00.0080.00419.43
7.1.330.0090.00615.96
7.1.320.0030.00715.71
7.1.310.0070.00715.66
7.1.300.0080.00815.87
7.1.290.0060.00315.82
7.1.280.0030.00715.88
7.1.270.0090.00615.75
7.1.260.0060.00915.96
7.1.200.0030.01015.73
7.1.100.0030.01317.84
7.1.70.0070.00717.09
7.1.60.0100.01419.46
7.1.50.0040.00817.01
7.1.00.0070.07322.57
7.0.200.0120.00014.93
7.0.140.0030.07021.99
7.0.60.0070.05019.87
7.0.50.0030.05317.87
7.0.40.0130.08020.26
7.0.30.0570.06720.23
7.0.20.0230.03320.26
7.0.10.0070.09020.06
7.0.00.0070.04720.29
5.6.280.0030.07321.15
5.6.210.0130.07720.53
5.6.200.0100.08318.20
5.6.190.0070.08020.77
5.6.180.0530.07320.63
5.6.170.0170.04720.56
5.6.160.0100.08020.70
5.6.150.0030.07718.18
5.6.140.0070.08318.17
5.6.130.0100.04318.18
5.6.120.0130.07321.00
5.6.110.0130.07721.14
5.6.100.0130.05721.00
5.6.90.0100.07321.03
5.6.80.0070.07320.41
5.5.350.0200.05020.34
5.5.340.0030.08317.99
5.5.330.0130.05720.27
5.5.320.0330.04320.35
5.5.310.0370.07720.51
5.5.300.0070.06317.94
5.5.290.0170.06018.04
5.5.280.0100.08020.80
5.5.270.0030.06020.83
5.5.260.0030.05720.64
5.5.250.0030.04320.71
5.5.240.0100.07020.23
5.4.450.0700.07019.62
5.4.440.0570.06019.68
5.4.430.0130.05319.41
5.4.420.0230.04319.21
5.4.410.0270.05319.25
5.4.400.0170.06719.23
5.4.390.0170.05318.70
5.4.380.0230.05018.61
5.4.370.0230.04718.46
5.4.360.0170.05318.70
5.4.350.0200.05718.72
5.4.340.0200.05018.50
5.4.320.0100.06018.55
5.4.310.0200.04718.72
5.4.300.0100.05718.51
5.4.290.0170.05318.52
5.4.280.0130.05718.60
5.4.270.0170.05018.71
5.4.260.0200.05318.71
5.4.250.0170.05318.76
5.4.240.0170.05718.76
5.4.230.0070.05718.80
5.4.220.0200.05018.59
5.4.210.0170.05318.77
5.4.200.0100.05316.71
5.4.190.0130.05318.70
5.4.180.0270.04318.70
5.4.170.0170.05318.78
5.4.160.0130.05718.72
5.4.150.0200.05018.44
5.4.140.0130.05316.27
5.4.130.0200.04316.18
5.4.120.0130.05016.28
5.4.110.0130.05016.25
5.4.100.0200.05016.35
5.4.90.0170.05316.25
5.4.80.0100.05316.34
5.4.70.0230.04316.44
5.4.60.0100.05316.29
5.4.50.0130.05016.29
5.4.40.0170.05016.26
5.4.30.0200.04316.29
5.4.20.0070.06016.18
5.4.10.0200.04316.30
5.4.00.0100.05315.75
5.3.290.0230.05014.86
5.3.280.0130.05314.69
5.3.270.0170.05714.70
5.3.260.0200.05314.61
5.3.250.0170.05314.79
5.3.240.0230.05314.73
5.3.230.0300.03714.82
5.3.220.0170.05314.70
5.3.210.0170.07014.66
5.3.200.0170.05014.61
5.3.190.0100.06014.67
5.3.180.0200.04714.79
5.3.170.0100.06014.61
5.3.160.0200.04714.62
5.3.150.0100.06014.62
5.3.140.0300.04314.55
5.3.130.0270.04714.54
5.3.120.0100.06014.77
5.3.110.0200.05014.55
5.3.100.0200.05014.25
5.3.90.0100.05714.03
5.3.80.0170.05014.04
5.3.70.0170.05014.10
5.3.60.0100.06014.14
5.3.50.0130.05314.18
5.3.40.0130.05314.07
5.3.30.0070.06014.02
5.3.20.0270.03713.83
5.3.10.0100.05313.69
5.3.00.0170.05013.70
5.2.170.0130.04311.18
5.2.160.0100.05011.19
5.2.150.0170.05711.25
5.2.140.0170.03711.16
5.2.130.0130.04011.11
5.2.120.0200.03011.21
5.2.110.0300.02711.13
5.2.100.0100.04011.22
5.2.90.0130.04011.09
5.2.80.0130.04011.13
5.2.70.0100.04711.12
5.2.60.0130.04311.04
5.2.50.0100.04711.13
5.2.40.0270.05311.01
5.2.30.0230.04710.98
5.2.20.0170.04311.07
5.2.10.0230.03310.99
5.2.00.0130.04710.76
5.1.60.0130.03310.01
5.1.50.0100.03710.20
5.1.40.0100.03310.01
5.1.30.0100.03710.32
5.1.20.0100.03710.42
5.1.10.0230.02310.15
5.1.00.0170.03710.20
5.0.50.0030.0378.68
5.0.40.0100.0308.52
5.0.30.0030.0478.22
5.0.20.0070.0308.23
5.0.10.0070.0308.29
5.0.00.0100.0438.16
4.4.90.0070.0235.89
4.4.80.0030.0275.97
4.4.70.0100.0235.91
4.4.60.0100.0275.86
4.4.50.0070.0335.89
4.4.40.0100.0305.88
4.4.30.0100.0235.97
4.4.20.0030.0236.03
4.4.10.0000.0276.00
4.4.00.0100.0305.95
4.3.110.0070.0235.82
4.3.100.0100.0205.81
4.3.90.0030.0235.87
4.3.80.0130.0275.79
4.3.70.0130.0135.80
4.3.60.0030.0235.82
4.3.50.0000.0275.82
4.3.40.0030.0375.79
4.3.30.0100.0204.58
4.3.20.0000.0334.54
4.3.10.0070.0274.51
4.3.00.0100.0239.34

preferences:
42.96 ms | 401 KiB | 5 Q