3v4l.org

run code in 300+ PHP versions simultaneously
<?php $el = 'a'; $res = ( $el == 'a' ) ? 'Это a' : (( $el == 'span' ) ? 'Это span' : 'Это не a и не span'); var_dump( $res ); //

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.01016.72
8.3.60.0000.01418.18
8.3.50.0160.00620.21
8.3.40.0040.01119.96
8.3.30.0090.00618.54
8.3.20.0000.00724.18
8.3.10.0110.00724.66
8.3.00.0040.00426.16
8.2.190.0130.00716.58
8.2.180.0100.00725.92
8.2.170.0100.01018.96
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0060.00320.52
8.2.100.0110.00017.84
8.2.90.0040.00417.50
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0050.00317.63
8.2.50.0060.00317.98
8.2.40.0040.00418.22
8.2.30.0000.00718.12
8.2.20.0040.00320.29
8.2.10.0000.00717.68
8.2.00.0080.00019.10
8.1.280.0120.00325.92
8.1.270.0080.00023.99
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0000.00823.92
8.1.230.0120.00019.04
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.09
8.1.190.0050.00317.23
8.1.180.0080.00318.10
8.1.170.0030.00517.62
8.1.160.0040.00418.84
8.1.150.0000.00818.51
8.1.140.0000.00717.40
8.1.130.0070.00018.79
8.1.120.0070.00017.36
8.1.110.0000.00817.44
8.1.100.0040.00417.36
8.1.90.0070.00017.32
8.1.80.0000.00717.34
8.1.70.0000.00817.49
8.1.60.0040.00417.51
8.1.50.0030.00517.47
8.1.40.0040.00417.55
8.1.30.0040.00417.65
8.1.20.0200.00617.55
8.1.10.0220.00317.32
8.1.00.0160.00717.38
8.0.300.0040.00419.66
8.0.290.0000.00816.58
8.0.280.0030.00518.30
8.0.270.0070.00016.66
8.0.260.0000.00718.27
8.0.250.0000.00616.89
8.0.240.0000.00716.87
8.0.230.0030.00316.82
8.0.220.0070.00016.79
8.0.210.0080.00016.77
8.0.200.0030.00316.76
8.0.190.0040.00416.77
8.0.180.0030.00516.88
8.0.170.0030.00616.84
8.0.160.0080.00016.66
8.0.150.0040.00416.64
8.0.140.0140.00816.63
8.0.130.0140.00816.75
8.0.120.0130.00816.69
8.0.110.0180.00416.75
8.0.100.0120.00916.65
8.0.90.0210.00316.78
8.0.80.0210.00016.75
8.0.70.0160.00616.69
8.0.60.0110.01116.83
8.0.50.0150.00616.82
8.0.30.0190.00616.88
8.0.20.0210.00016.91
8.0.10.0220.00016.78
7.4.330.0030.00315.55
7.4.320.0070.00016.60
7.4.300.0030.00316.39
7.4.290.0040.00416.43
7.4.280.0040.00416.57
7.4.270.0200.00316.50
7.4.260.0200.00716.38
7.4.250.0150.00416.54
7.4.240.0040.00416.48
7.4.230.0120.00816.58
7.4.220.0120.00816.55
7.4.210.0040.01116.46
7.4.200.0140.00316.34
7.4.190.0150.00416.65
7.4.180.0120.00416.64
7.4.160.0160.00316.64
7.4.150.0130.00416.49
7.4.140.0130.00416.44
7.4.130.0190.00016.33
7.4.120.0140.00616.27
7.4.110.0070.01016.35
7.4.100.0180.00016.47
7.4.90.0170.00416.34
7.4.80.0130.00916.34
7.4.70.0090.01316.43
7.4.60.0140.00716.26
7.4.50.0150.00716.27
7.4.40.0120.00916.17
7.4.30.0160.00316.45
7.4.20.0230.00016.21
7.4.10.0130.00816.41
7.4.00.0160.00816.42

preferences:
29.3 ms | 401 KiB | 5 Q