3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PushAndPull { private $queue=array(); public function push($push) { array_push($this->$queue,$push); } public function pull() { return array_shift($this->$queue); } } $obj = new PushAndPull(); $obj->push(1); ?>

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.0040.01116.48
8.3.50.0180.00316.55
8.3.40.0070.01018.72
8.3.30.0060.00918.72
8.3.20.0080.00018.53
8.3.10.0070.00718.86
8.3.00.0030.00619.38
8.2.180.0030.01018.29
8.2.170.0070.00722.96
8.2.160.0120.00318.96
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0090.00019.09
8.2.110.0040.00422.26
8.2.100.0090.00317.71
8.2.90.0080.00017.75
8.2.80.0030.00618.91
8.2.70.0080.00017.49
8.2.60.0040.00417.63
8.2.50.0040.00417.91
8.2.40.0040.00419.35
8.2.30.0080.00317.68
8.2.20.0030.00617.62
8.2.10.0040.00417.66
8.2.00.0000.00717.72
8.1.280.0150.00325.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00617.23
8.1.230.0040.01118.66
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00817.11
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0050.00317.62
8.1.160.0000.00719.05
8.1.150.0000.00718.52
8.1.140.0080.00017.44
8.1.130.0030.00317.33
8.1.120.0070.00017.39
8.1.110.0030.00517.37
8.1.100.0070.00017.29
8.1.90.0000.00717.29
8.1.80.0050.00217.37
8.1.70.0030.00317.31
8.1.60.0050.00317.58
8.1.50.0070.00017.45
8.1.40.0030.00617.55
8.1.30.0030.00617.52
8.1.20.0090.00017.64
8.1.10.0040.00417.59
8.1.00.0000.00817.47
8.0.300.0070.00318.77
8.0.290.0080.00016.75
8.0.280.0000.00718.49
8.0.270.0030.00317.11
8.0.260.0030.00316.82
8.0.250.0070.00016.93
8.0.240.0030.00516.86
8.0.230.0000.00717.00
8.0.220.0000.00716.85
8.0.210.0000.00716.95
8.0.200.0000.00716.91
8.0.190.0040.00416.97
8.0.180.0030.00616.79
8.0.170.0000.00816.72
8.0.160.0040.00417.02
8.0.150.0000.00916.71
8.0.140.0030.00616.84
8.0.130.0030.00313.36
8.0.120.0000.00916.88
8.0.110.0060.00316.88
8.0.100.0000.00716.95
8.0.90.0040.00416.80
8.0.80.0080.00816.80
8.0.70.0000.00716.79
8.0.60.0030.00616.75
8.0.50.0000.00816.84
8.0.30.0080.01217.41
8.0.20.0090.01117.06
8.0.10.0030.00516.84
8.0.00.0120.00716.64
7.4.330.0000.00512.95
7.4.320.0000.00616.34
7.4.300.0030.00316.48
7.4.290.0040.00416.61
7.4.280.0030.00516.54
7.4.270.0030.00316.50
7.4.260.0000.00513.27
7.4.250.0070.00016.62
7.4.240.0000.00716.43
7.4.230.0030.00616.57
7.4.220.0110.00716.50
7.4.210.0050.00916.55
7.4.200.0030.00616.52
7.4.190.0040.00416.30
7.4.160.0120.00316.34
7.4.150.0150.00316.62
7.4.140.0080.01116.31
7.4.130.0100.00616.35
7.4.120.0030.01316.35
7.4.110.0120.00616.52
7.4.100.0060.01716.36
7.4.90.0060.01116.60
7.4.80.0090.01219.39
7.4.70.0120.00916.34
7.4.60.0030.01316.47
7.4.50.0000.00516.38
7.4.40.0120.00616.37
7.4.30.0100.00616.49
7.4.00.0070.00915.06
7.3.330.0030.00313.21
7.3.320.0050.00013.27
7.3.310.0070.00016.43
7.3.300.0070.00016.28
7.3.290.0130.00616.33
7.3.280.0100.00716.30
7.3.270.0130.00416.49
7.3.260.0080.00816.48
7.3.250.0120.00816.43
7.3.240.0090.01216.31
7.3.230.0110.00716.28
7.3.210.0110.00716.38
7.3.200.0100.00716.32
7.3.190.0070.01016.39
7.3.180.0090.00616.36
7.3.170.0060.01216.28
7.3.160.0070.01016.30
7.3.120.0080.01014.80
7.3.110.0090.00914.74
7.3.100.0060.01314.90
7.3.90.0000.01514.89
7.3.80.0100.00714.69
7.3.70.0070.00714.91
7.3.60.0030.00614.81
7.3.50.0040.00714.80
7.3.40.0000.01414.98
7.3.30.0040.00814.54
7.3.20.0050.00516.44
7.3.10.0070.00316.63
7.3.00.0070.00616.42
7.2.330.0030.01616.27
7.2.320.0080.00816.72
7.2.310.0100.01016.21
7.2.300.0060.01116.40
7.2.290.0130.00716.40
7.2.250.0110.00814.97
7.2.240.0070.01115.12
7.2.230.0110.00714.88
7.2.220.0060.00614.91
7.2.210.0000.01014.53
7.2.200.0100.00714.69
7.2.190.0000.01214.95
7.2.180.0040.00814.88
7.2.170.0100.00615.00
7.2.160.0060.00914.98
7.2.150.0000.00916.61
7.2.140.0130.00316.81
7.2.130.0060.00916.79
7.2.120.0030.00916.92
7.2.110.0070.00716.88
7.2.100.0050.01016.75
7.2.90.0070.00816.78
7.2.80.0080.00916.90
7.2.70.0030.01116.66
7.2.60.0430.00516.21
7.2.50.0080.00816.76
7.2.40.0030.00916.81
7.2.30.0050.00716.97
7.2.20.0030.01316.53
7.2.10.0070.00916.85
7.2.00.0050.00717.49
7.1.330.0080.00416.00
7.1.320.0030.01315.78
7.1.310.0060.00315.68
7.1.300.0090.00315.61
7.1.290.0070.00415.85
7.1.280.0070.00715.74
7.1.270.0070.00415.80
7.1.260.0040.01115.85
7.1.250.0060.00615.76
7.1.240.0050.00815.74
7.1.230.0030.00915.54
7.1.220.0030.01015.73
7.1.210.0070.00815.60
7.1.200.0050.00915.67
7.1.190.0090.00315.62
7.1.180.0030.00915.81
7.1.170.0070.00315.70
7.1.160.0050.00715.51
7.1.150.0050.00615.77
7.1.140.0020.01015.61
7.1.130.0050.01015.62
7.1.120.0060.00615.68
7.1.110.0050.00715.79
7.1.100.0060.00616.30
7.1.90.0040.01115.85
7.1.80.0030.00915.74
7.1.70.0060.00916.23
7.1.60.0050.00916.96
7.1.50.0090.00821.92
7.1.40.0060.00715.73
7.1.30.0090.00415.80
7.1.20.0070.00815.58
7.1.10.0090.00515.67
7.1.00.0060.01617.96
7.0.330.0090.00315.24
7.0.320.0100.00415.34
7.0.310.0040.00415.20
7.0.300.0060.00815.26
7.0.290.0060.00815.46
7.0.280.0080.00515.27
7.0.270.0050.00415.35
7.0.260.0070.00715.36
7.0.250.0050.01015.37
7.0.240.0050.00615.37
7.0.230.0060.00815.23
7.0.220.0030.01015.38
7.0.210.0040.00915.47
7.0.200.0070.00415.79
7.0.190.0050.00915.37
7.0.180.0090.00515.39
7.0.170.0070.00715.36
7.0.160.0070.00315.43
7.0.150.0070.00715.26
7.0.140.0070.02817.59
7.0.130.0060.00615.43
7.0.120.0040.02917.40
7.0.110.0040.01015.38
7.0.100.0050.00515.38
7.0.90.0050.00615.43
7.0.80.0050.00815.42
7.0.70.0040.00615.33
7.0.60.0050.02816.97
7.0.50.0080.03116.32
7.0.40.0090.03115.58
7.0.30.0180.02115.69
7.0.20.0090.01615.58
7.0.10.0110.01815.64
7.0.00.0060.02915.72
5.6.400.0110.00014.39
5.6.390.0080.00714.38
5.6.380.0050.00714.39
5.6.370.0050.01014.20
5.6.360.0080.00614.35
5.6.350.0050.00714.35
5.6.340.0100.00714.16
5.6.330.0050.00714.37
5.6.320.0090.00514.21
5.6.310.0020.01314.16
5.6.300.0030.00614.42
5.6.290.0000.01414.26
5.6.280.0050.03016.53
5.6.270.0050.00814.42
5.6.260.0080.00314.29
5.6.250.0040.00914.18
5.6.240.0050.00614.22
5.6.230.0060.00514.12
5.6.220.0100.00414.26
5.6.210.0060.03216.47
5.6.200.0050.02115.63
5.6.190.0050.03516.44
5.6.180.0110.02516.40
5.6.170.0100.03416.24
5.6.160.0020.03616.28
5.6.150.0060.03015.58
5.6.140.0030.03615.53
5.6.130.0080.03215.61
5.6.120.0070.03216.36
5.6.110.0070.03216.48
5.6.100.0070.03116.59
5.6.90.0110.02616.39
5.6.80.0060.03416.15
5.6.70.0130.01916.11
5.6.60.0090.00314.11
5.6.50.0060.00914.07
5.6.40.0100.00414.31
5.6.30.0080.00614.31
5.6.20.0070.00714.25
5.6.10.0050.00814.23
5.6.00.0040.01114.08
5.5.380.0060.00312.88
5.5.370.0070.00712.79
5.5.360.0090.00012.79
5.5.350.0160.02815.30
5.5.340.0040.03114.60
5.5.330.0040.02015.38
5.5.320.0140.02815.32
5.5.310.0120.03415.34
5.5.300.0030.02014.58
5.5.290.0060.02614.59
5.5.280.0040.02215.63
5.5.270.0050.03215.68
5.5.260.0040.01815.72
5.5.250.0130.02515.43
5.5.240.0040.01915.30
5.5.230.0010.00612.80
5.5.220.0070.00713.00
5.5.210.0050.00812.82
5.5.200.0050.00812.80
5.5.190.0070.00512.96
5.5.180.0060.00812.85
5.5.170.0090.00512.79
5.5.160.0020.00612.83
5.5.150.0020.00912.85
5.5.140.0070.00613.02
5.5.130.0020.01112.89
5.5.120.0080.00412.97
5.5.110.0030.01012.85
5.5.100.0060.00612.85
5.5.90.0120.00112.88
5.5.80.0050.00512.84
5.5.70.0020.01012.89
5.5.60.0060.00712.95
5.5.50.0030.00812.78
5.5.40.0050.00712.81
5.5.30.0050.00412.97
5.5.20.0070.00612.79
5.5.10.0080.00312.78
5.5.00.0070.00512.75
5.4.450.0050.02014.06
5.4.440.0030.01614.06
5.4.430.0040.01714.18
5.4.420.0070.01314.11
5.4.410.0010.02014.01
5.4.400.0010.01814.08
5.4.390.0040.01613.97
5.4.380.0070.01213.97
5.4.370.0050.01613.95
5.4.360.0040.01614.05
5.4.350.0040.01714.02
5.4.340.0050.02114.05
5.4.330.0060.00411.50
5.4.320.0010.02414.04
5.4.310.0030.02913.95
5.4.300.0060.01614.06
5.4.290.0040.03014.08
5.4.280.0070.01514.05
5.4.270.0060.01513.95
5.4.260.0030.01613.95
5.4.250.0020.01914.08
5.4.240.0030.02314.05
5.4.230.0040.01613.99
5.4.220.0060.02214.08
5.4.210.0060.02314.08
5.4.200.0060.03013.95
5.4.190.0060.02714.02
5.4.180.0050.02713.97
5.4.170.0040.02914.00
5.4.160.0050.02014.07
5.4.150.0050.02914.06
5.4.140.0070.02913.12
5.4.130.0060.02013.08
5.4.120.0040.01713.12
5.4.110.0030.01613.13
5.4.100.0020.01913.16
5.4.90.0030.01613.14
5.4.80.0050.01613.16
5.4.70.0030.02913.17
5.4.60.0020.01913.13
5.4.50.0060.01713.12
5.4.40.0050.01813.13
5.4.30.0030.01813.08
5.4.20.0040.02213.09
5.4.10.0030.02513.08
5.4.00.0010.02912.98
5.3.290.0070.02712.56
5.3.280.0060.01512.49
5.3.270.0020.02612.55
5.3.260.0070.01812.55
5.3.250.0050.02512.53
5.3.240.0040.02612.59
5.3.230.0040.01712.58
5.3.220.0040.01612.55
5.3.210.0040.01712.53
5.3.200.0050.01512.53
5.3.190.0060.01912.57
5.3.180.0020.01612.48
5.3.170.0050.01712.53
5.3.160.0040.01612.57
5.3.150.0050.02512.54
5.3.140.0050.01612.51
5.3.130.0020.01912.56
5.3.120.0020.02712.57
5.3.110.0010.02112.49
5.3.100.0070.02712.35
5.3.90.0070.02712.35
5.3.80.0050.01812.35
5.3.70.0040.02912.39
5.3.60.0040.01612.35
5.3.50.0040.01712.31
5.3.40.0070.02612.28
5.3.30.0040.01612.30
5.3.20.0040.01612.21
5.3.10.0100.01712.23
5.3.00.0060.01512.23
5.2.170.0060.01511.36
5.2.160.0060.01811.38
5.2.150.0040.01711.38
5.2.140.0030.01811.40
5.2.130.0000.02911.38
5.2.120.0030.01811.36
5.2.110.0050.02511.35
5.2.100.0030.02511.36
5.2.90.0020.01911.36
5.2.80.0010.02111.42
5.2.70.0050.02011.37
5.2.60.0070.02211.31
5.2.50.0030.02011.27
5.2.40.0070.02511.32
5.2.30.0000.02111.25
5.2.20.0040.01711.30
5.2.10.0030.02211.31
5.2.00.0020.01711.14
5.1.60.0020.02210.79
5.1.50.0070.02510.78
5.1.40.0050.02610.74
5.1.30.0050.02510.98
5.1.20.0060.02611.00
5.1.10.0040.01510.86
5.1.00.0000.01910.87
5.0.50.0030.02210.05
5.0.40.0000.01310.03
5.0.30.0050.0229.94
5.0.20.0030.0119.89
5.0.10.0050.0109.96
5.0.00.0030.0189.88
4.4.90.0000.0239.59
4.4.80.0030.0089.59
4.4.70.0040.0189.59
4.4.60.0020.0109.59
4.4.50.0030.0129.59
4.4.40.0070.0129.59
4.4.30.0000.0129.59
4.4.20.0030.0109.59
4.4.10.0030.0159.59
4.4.00.0020.0139.59
4.3.110.0030.0089.59
4.3.100.0000.0099.59
4.3.90.0020.0109.59
4.3.80.0020.0189.59
4.3.70.0020.0179.59
4.3.60.0020.0099.59
4.3.50.0020.0109.59
4.3.40.0020.0149.59
4.3.30.0020.0109.59
4.3.20.0030.0089.59
4.3.10.0010.0209.59
4.3.00.0000.0139.59

preferences:
67.77 ms | 400 KiB | 5 Q