3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { return new stdclass; } $a= ["stdclass", "stdout"]; var_dump(foo() instanceof $a[0] + foo() instanceof $a[0]);

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.0170.00316.63
8.3.50.0120.00521.98
8.3.40.0130.00318.79
8.3.30.0140.00019.18
8.3.20.0070.00020.04
8.3.10.0030.00623.66
8.3.00.0090.00018.83
8.2.180.0120.00318.56
8.2.170.0070.00722.96
8.2.160.0070.00720.31
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00020.84
8.2.110.0060.00320.45
8.2.100.0080.00317.91
8.2.90.0070.00019.21
8.2.80.0030.00517.97
8.2.70.0060.00317.75
8.2.60.0030.00617.80
8.2.50.0030.00518.07
8.2.40.0050.00319.82
8.2.30.0030.00518.18
8.2.20.0000.00817.67
8.2.10.0000.00717.86
8.2.00.0050.00317.66
8.1.280.0130.00325.92
8.1.270.0060.00322.05
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0100.00023.64
8.1.230.0080.00422.08
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0000.01017.23
8.1.190.0090.00017.23
8.1.180.0050.00318.88
8.1.170.0090.00318.40
8.1.160.0040.00421.89
8.1.150.0040.00418.61
8.1.140.0040.00417.25
8.1.130.0030.00317.76
8.1.120.0050.00317.29
8.1.110.0070.00317.35
8.1.100.0000.00817.40
8.1.90.0030.00317.26
8.1.80.0000.00817.44
8.1.70.0030.00317.27
8.1.60.0040.00417.56
8.1.50.0030.00517.53
8.1.40.0040.00417.52
8.1.30.0040.00417.68
8.1.20.0050.00317.47
8.1.10.0050.00217.54
8.1.00.0040.00417.41
8.0.300.0000.00818.77
8.0.290.0000.00717.18
8.0.280.0070.00018.36
8.0.270.0000.00717.18
8.0.260.0060.00018.28
8.0.250.0060.00016.84
8.0.240.0060.00016.85
8.0.230.0030.00316.88
8.0.220.0000.00716.82
8.0.210.0030.00316.90
8.0.200.0000.00916.90
8.0.190.0040.00416.84
8.0.180.0040.00416.86
8.0.170.0040.00416.94
8.0.160.0050.00216.94
8.0.150.0000.00716.79
8.0.140.0030.00716.86
8.0.130.0050.00013.39
8.0.120.0050.00316.75
8.0.110.0040.00416.87
8.0.100.0040.00416.77
8.0.90.0050.00316.87
8.0.80.0110.00416.88
8.0.70.0040.00416.92
8.0.60.0040.00416.91
8.0.50.0040.00416.94
8.0.30.0090.00917.11
8.0.20.0070.01617.40
8.0.10.0030.00516.91
8.0.00.0140.00816.70
7.4.330.0060.00015.03
7.4.320.0000.00716.58
7.4.300.0080.00016.42
7.4.290.0070.00016.51
7.4.280.0060.00316.63
7.4.270.0000.00816.40
7.4.260.0000.00716.47
7.4.250.0030.00516.46
7.4.240.0020.00516.50
7.4.230.0050.00316.62
7.4.220.0030.01316.54
7.4.210.0040.01016.54
7.4.200.0000.00716.59
7.4.190.0000.00716.54
7.4.160.0070.00716.48
7.4.150.0140.01117.40
7.4.140.0100.00917.86
7.4.130.0090.00916.63
7.4.120.0050.01116.61
7.4.110.0130.00316.63
7.4.100.0070.01116.31
7.4.90.0150.00316.64
7.4.80.0100.01319.39
7.4.70.0070.01016.43
7.4.60.0090.00916.55
7.4.50.0040.00416.47
7.4.40.0060.00916.46
7.4.30.0100.00616.12
7.4.00.0040.01215.23
7.3.330.0030.00313.09
7.3.320.0030.00313.23
7.3.310.0000.00716.30
7.3.300.0000.00616.26
7.3.290.0090.00716.16
7.3.280.0080.01016.26
7.3.270.0140.00417.40
7.3.260.0070.01916.56
7.3.250.0100.00716.41
7.3.240.0140.00316.53
7.3.230.0070.01016.39
7.3.210.0040.01316.30
7.3.200.0060.01619.39
7.3.190.0040.01416.47
7.3.180.0070.00716.22
7.3.170.0090.00616.44
7.3.160.0040.01116.50
7.3.120.0080.00814.81
7.3.10.0060.00616.47
7.3.00.0040.00716.66
7.2.330.0140.00316.76
7.2.320.0030.01416.38
7.2.310.0080.00816.78
7.2.300.0110.01116.57
7.2.290.0120.00616.77
7.2.130.0060.00617.04
7.2.120.0040.00816.83
7.2.110.0060.00616.93
7.2.100.0090.00016.68
7.2.90.0030.00916.64
7.2.80.0070.00716.64
7.2.70.0070.00316.96
7.2.60.0060.00716.88
7.2.50.0040.00716.91
7.2.40.0110.00316.73
7.2.30.0090.00616.84
7.2.20.0110.00416.84
7.2.10.0100.00316.94
7.2.00.0050.01018.19
7.1.250.0000.00915.75
7.1.200.0080.00415.90
7.1.100.0030.01018.39
7.1.70.0000.00916.90
7.1.60.0110.01419.46
7.1.50.0100.01316.87
7.1.00.0100.07022.30
7.0.200.0100.00716.45
7.0.140.0000.07321.93
7.0.60.0100.07720.02
7.0.50.0070.06317.72
7.0.40.0100.08720.11
7.0.30.0200.04720.26
7.0.20.0330.07720.23
7.0.10.0070.04320.24
7.0.00.0030.04020.14
5.6.280.0000.07320.99
5.6.210.0070.06720.51
5.6.200.0070.08718.12
5.6.190.0030.04020.41
5.6.180.0030.08020.61
5.6.170.0170.04020.48
5.6.160.0100.08320.55
5.6.150.0130.07318.18
5.6.140.0070.06718.14
5.6.130.0130.08018.29
5.6.120.0070.06020.96
5.6.110.0170.07721.05
5.6.100.0130.04321.04
5.6.90.0000.06721.00
5.6.80.0030.03720.38
5.5.350.0070.07720.46
5.5.340.0100.07717.95
5.5.330.0030.04720.19
5.5.320.0300.08020.27
5.5.310.0330.07720.39
5.5.300.0030.08017.94
5.5.290.0030.06717.99
5.5.280.0070.08020.77
5.5.270.0070.04020.93
5.5.260.0170.08020.79
5.5.250.0100.06320.77
5.5.240.0000.03320.25
5.4.450.0370.06719.61
5.4.440.0800.06319.49
5.4.430.0670.05719.47
5.4.420.1200.05319.58
5.4.410.0970.06019.03
5.4.400.0030.05719.29
5.4.390.0900.05319.25
5.4.380.0170.06718.83
5.4.370.0970.05318.50
5.4.360.0070.05718.53
5.4.350.0430.05318.79
5.4.340.0200.06718.69
5.4.320.0030.04112.50
5.4.310.0060.03912.50
5.4.300.0050.03912.50
5.4.290.0050.03912.50
5.4.280.0060.03612.39
5.4.270.0080.03712.39
5.4.260.0040.04012.39
5.4.250.0020.04212.39
5.4.240.0070.03712.40
5.4.230.0040.04212.39
5.4.220.0110.03412.39
5.4.210.0060.03812.39
5.4.200.0090.04112.39
5.4.190.0060.03812.38
5.4.180.0060.04712.39
5.4.170.0130.05112.39
5.4.160.0060.04012.39
5.4.150.0120.03912.38
5.4.140.0040.05712.07
5.4.130.0110.04012.06
5.4.120.0110.04312.02
5.4.110.0090.04512.00
5.4.100.0060.04912.01
5.4.90.0090.05012.01
5.4.80.0100.04712.01
5.4.70.0100.04112.00
5.4.60.0080.04712.01
5.4.50.0090.04812.00
5.4.40.0080.04512.00
5.4.30.0080.04611.98
5.4.20.0080.04811.99
5.4.10.0110.04511.98
5.4.00.0200.04611.48
5.3.290.0050.04112.80
5.3.280.0140.04112.71
5.3.270.0080.04212.72
5.3.260.0070.04112.72
5.3.250.0070.04812.72
5.3.240.0080.05212.72
5.3.230.0090.04612.71
5.3.220.0130.04112.68
5.3.210.0110.05012.68
5.3.200.0100.04512.68
5.3.190.0210.06912.68
5.3.180.0110.05712.67
5.3.170.0160.05112.67
5.3.160.0090.04912.68
5.3.150.0080.03912.68
5.3.140.0070.04112.66
5.3.130.0050.04212.65
5.3.120.0090.04312.66
5.3.110.0100.03712.66
5.3.100.0060.03912.13
5.3.90.0050.04112.10
5.3.80.0070.03912.09
5.3.70.0070.04212.09
5.3.60.0100.04412.08
5.3.50.0080.03912.02
5.3.40.0070.04612.02
5.3.30.0140.04811.98
5.3.20.0070.05411.77
5.3.10.0150.04411.73
5.3.00.0100.05011.71
5.2.170.0080.0399.21
5.2.160.0110.0459.21
5.2.150.0060.0499.22
5.2.140.0080.0419.21
5.2.130.0060.0429.17
5.2.120.0060.0429.17
5.2.110.0080.0399.18
5.2.100.0120.0479.18
5.2.90.0070.0479.18
5.2.80.0100.0419.18
5.2.70.0040.0459.18
5.2.60.0040.0459.13
5.2.50.0050.0339.09
5.2.40.0060.0319.07
5.2.30.0070.0309.05
5.2.20.0040.0309.04
5.2.10.0060.0268.94
5.2.00.0050.0288.80
5.1.60.0040.0248.08
5.1.50.0030.0268.08
5.1.40.0030.0278.07
5.1.30.0050.0268.42
5.1.20.0070.0258.43
5.1.10.0050.0268.16
5.1.00.0020.0288.16
5.0.50.0020.0236.64
5.0.40.0070.0176.50
5.0.30.0080.0356.31
5.0.20.0020.0226.28
5.0.10.0070.0176.26
5.0.00.0030.0326.25
4.4.90.0030.0164.78
4.4.80.0060.0154.75
4.4.70.0050.0204.75
4.4.60.0020.0174.75
4.4.50.0030.0174.77
4.4.40.0020.0294.71
4.4.30.0060.0124.76
4.4.20.0040.0144.85
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0020.0164.67
4.3.100.0050.0164.67
4.3.90.0030.0174.64
4.3.80.0020.0274.59
4.3.70.0050.0154.63
4.3.60.0030.0174.63
4.3.50.0030.0184.63
4.3.40.0020.0284.54
4.3.30.0050.0163.30
4.3.20.0020.0203.28
4.3.10.0020.0163.23
4.3.00.0000.0236.93

preferences:
44.73 ms | 401 KiB | 5 Q