3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $emailLog; public function initialize() { $this->emailLog = new ArrayObject([1, 2, 3]); } public function summary() { return count($this->emailLog) === 0 ? '' : count($this->emailLog); } } $log = new Foo; $log->initialize(); echo $log->summary(); ?>

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.0060.01218.30
8.3.60.0100.00718.43
8.3.50.0090.00819.06
8.3.40.0150.00018.70
8.3.30.0000.01518.44
8.3.20.0040.00420.17
8.3.10.0000.00718.60
8.3.00.0050.00323.53
8.2.190.0110.00416.58
8.2.180.0100.01018.54
8.2.170.0080.00822.96
8.2.160.0120.00320.35
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0040.00420.41
8.2.120.0050.00326.35
8.2.110.0110.00021.17
8.2.100.0070.00417.91
8.2.90.0040.00418.34
8.2.80.0050.00319.16
8.2.70.0030.00617.50
8.2.60.0030.00518.04
8.2.50.0030.00518.16
8.2.40.0000.00720.45
8.2.30.0040.00419.24
8.2.20.0000.00818.18
8.2.10.0030.00518.05
8.2.00.0040.00418.15
8.1.280.0030.01025.92
8.1.270.0080.00022.02
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00423.82
8.1.230.0080.00320.97
8.1.220.0030.00617.79
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0040.00417.22
8.1.180.0000.00718.10
8.1.170.0040.00418.71
8.1.160.0070.00018.77
8.1.150.0070.00018.97
8.1.140.0040.00418.99
8.1.130.0070.00018.89
8.1.120.0030.00617.41
8.1.110.0080.00017.39
8.1.100.0040.00417.38
8.1.90.0000.00817.37
8.1.80.0040.00417.36
8.1.70.0030.00317.48
8.1.60.0030.00617.63
8.1.50.0040.00417.46
8.1.40.0000.00817.48
8.1.30.0000.00817.65
8.1.20.0000.00817.66
8.1.10.0040.00417.57
8.1.00.0050.00317.40
8.0.300.0030.00320.07
8.0.290.0040.00416.63
8.0.280.0000.00718.44
8.0.270.0000.00717.26
8.0.260.0030.00316.84
8.0.250.0030.00516.90
8.0.240.0040.00416.93
8.0.230.0000.00716.86
8.0.220.0100.00016.79
8.0.210.0030.00316.80
8.0.200.0000.00716.79
8.0.190.0040.00416.82
8.0.180.0040.00416.85
8.0.170.0040.00416.93
8.0.160.0030.00416.93
8.0.150.0040.00416.94
8.0.140.0070.00016.87
8.0.130.0060.00013.32
8.0.120.0080.00016.79
8.0.110.0000.00816.87
8.0.100.0050.00216.73
8.0.90.0040.00416.72
8.0.80.0060.00916.79
8.0.70.0070.00016.76
8.0.60.0000.00716.85
8.0.50.0040.00416.96
8.0.30.0120.00617.07
8.0.20.0090.01017.40
8.0.10.0000.00716.82
8.0.00.0100.00816.83
7.4.330.0070.00015.55
7.4.320.0000.00616.53
7.4.300.0060.00016.51
7.4.290.0000.00716.50
7.4.280.0070.00316.35
7.4.270.0000.00716.54
7.4.260.0000.00716.51
7.4.250.0030.00316.48
7.4.240.0000.00716.52
7.4.230.0030.00316.35
7.4.220.0090.00916.61
7.4.210.0100.00316.54
7.4.200.0050.00216.72
7.4.160.0080.01016.51
7.4.150.0090.01217.40
7.4.140.0110.00717.86
7.4.130.0070.01016.55
7.4.120.0110.00816.52
7.4.110.0070.01016.51
7.4.100.0090.00916.51
7.4.90.0060.01116.39
7.4.80.0100.00619.39
7.4.70.0120.00916.55
7.4.60.0090.00916.37
7.4.50.0070.00716.51
7.4.40.0060.01216.22
7.4.30.0060.01216.55
7.4.00.0040.01314.79
7.3.330.0030.00313.12
7.3.320.0000.00613.13
7.3.310.0040.00416.30
7.3.300.0030.00316.18
7.3.290.0090.00716.27
7.3.280.0080.00916.27
7.3.270.0100.01017.40
7.3.260.0120.00716.31
7.3.250.0110.00916.24
7.3.240.0120.00416.41
7.3.230.0150.00316.55
7.3.210.0100.00716.54
7.3.200.0120.00616.46
7.3.190.0070.01016.35
7.3.180.0040.01116.39
7.3.170.0160.00016.30
7.3.160.0070.01416.34
7.3.120.0080.00814.91
7.3.110.0040.01414.64
7.3.100.0070.00414.97
7.3.90.0060.00314.80
7.3.80.0030.01214.79
7.3.70.0000.00914.75
7.3.60.0040.00714.89
7.3.50.0070.00714.72
7.3.40.0060.00914.87
7.3.30.0000.01414.82
7.3.20.0060.00616.59
7.3.10.0100.00416.55
7.3.00.0050.00716.68
7.2.330.0090.00916.77
7.2.320.0090.01316.67
7.2.310.0120.00616.75
7.2.300.0090.01216.82
7.2.290.0080.00816.58
7.2.250.0100.01015.10
7.2.240.0030.01715.02
7.2.230.0110.00014.79
7.2.220.0070.01015.06
7.2.210.0040.00815.02
7.2.200.0090.00615.03
7.2.190.0030.01015.10
7.2.180.0030.01014.93
7.2.170.0030.01414.80
7.2.130.0070.00816.84
7.2.120.0050.00716.84
7.2.110.0060.00616.79
7.2.100.0070.00716.82
7.2.90.0050.00416.88
7.2.80.0090.00516.87
7.2.70.0050.00816.83
7.2.60.0100.00516.92
7.2.50.0040.01216.79
7.2.40.0040.01216.84
7.2.30.0110.00516.99
7.2.20.0090.00617.02
7.2.10.0130.00516.84
7.2.00.0040.01018.27
7.1.330.0000.01315.75
7.1.320.0110.00415.88
7.1.310.0030.00915.80
7.1.300.0040.00715.47
7.1.290.0100.00615.63
7.1.280.0060.00915.70
7.1.270.0040.00715.84
7.1.260.0060.00615.49
7.1.250.0020.00815.73
7.1.200.0040.00415.64
7.1.120.0030.00818.85
7.1.110.0070.00318.02
7.1.100.0060.00317.98
7.1.90.0040.00717.84
7.1.80.0060.00617.84
7.1.70.0050.00517.26
7.1.60.0070.01435.00
7.1.50.0110.01134.95
7.1.40.0090.01234.37
7.1.30.0110.01134.34
7.1.20.0200.00334.55
7.1.10.0080.00316.55
7.1.00.0070.00316.50

preferences:
58.42 ms | 401 KiB | 5 Q